]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: rtl8192u: Do not DMA on the stack
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>
Thu, 8 Oct 2015 15:21:49 +0000 (17:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:40:48 +0000 (20:40 -0700)
commitd6df10e57c41a24762e8f736edbddf24a9084808
tree33a7a112c291b73f476449dc380f8e7b8dee1774
parent1593a418a5380df2f85c26097e3a2dedb8d9395a
Staging: rtl8192u: Do not DMA on the stack

Fix error "doing DMA on the stack" by using kzalloc for buffer
allocation.
Issue found by smatch.

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c