]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: ft1000-usb: check for errors in card_send_command
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>
Tue, 8 Jul 2014 14:02:42 +0000 (17:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 19:18:21 +0000 (12:18 -0700)
commiteedd8d7ee8536adb42ddc7a91c9aea4a08a7b6f4
tree9c3d309da66fe0467e24fe32027e8a854ea6130b
parent85f28332e3de1eeb7c902fd2763cf79012ccf26b
staging: ft1000-usb: check for errors in card_send_command

kmalloc() result check was lacking. Fixing that required also
changing card_send_command() return type from void to int, and
checking its return code everywhere.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=78561
Reported-by: Maksymilian Arciemowicz <max@cert.cx>
Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
drivers/staging/ft1000/ft1000-usb/ft1000_usb.h