staging: pi433: reduce stack size in tx thread
authorArnd Bergmann <arnd@arndb.de>
Mon, 31 Jul 2017 08:57:47 +0000 (10:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Aug 2017 00:43:14 +0000 (17:43 -0700)
commit62f39d49d168fcb405b833f3f864d49a01017ad9
treec4dcd594453b25b7cbd480ec63a883310a1395d0
parent125a452cdf2f48d74db29e39f02e030d2c88fe62
staging: pi433: reduce stack size in tx thread

Putting a 900 byte array on the stack is a clearly too much in the
kernel, and sometimes results in warnings like:

drivers/staging/pi433/pi433_if.c: In function 'pi433_tx_thread':
drivers/staging/pi433/pi433_if.c:645:1: error: the frame size of 1028 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]

This moves the buffer into the dynamically allocated per-device
structure.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Marcus Wolf <linux@wolf-entwicklungen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c