OpenCloudOS-Kernel/drivers/usb/misc/sisusbvga
Peter Senna Tschudin 0e781c2258 usb-misc: sisusbvga: fix error path
Remove a call to dev_err() that was reporting an unsuccesful call to
kmalloc(), as reporting memory allocation failures is redundant. Instead
of logging the error, clean up previously allocated resources and abort
the probe with -ENOMEM. Before this change sisusb->SiS_Pr could be
dereferenced even if null after failure of memory allocation.

Signed-off-by: Peter Senna Tschudin <peter.senna@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-01-24 21:04:54 -08:00
..
Kconfig console/font: Refactor font support code selection logic 2013-06-23 15:55:16 +02:00
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -07:00
sisusb.c usb-misc: sisusbvga: fix error path 2016-01-24 21:04:54 -08:00
sisusb.h USB: sisusbvga: drop usb_buffer_alloc 2009-09-23 06:46:19 -07:00
sisusb_con.c USB: sisusb_con.c: move assignment out of if () block 2015-05-10 16:01:12 +02:00
sisusb_init.c usb: delete non-required instances of include <linux/init.h> 2014-01-08 15:01:39 -08:00
sisusb_init.h
sisusb_struct.h