]> 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)
commit548dd088720c8c98284eb01f6fb146a32843c4b8
tree33a7a112c291b73f476449dc380f8e7b8dee1774
parent845d7c41a46a99ab9e4005e442bbb8d310d5afb5
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