linux/drivers/staging/gdm724x
Alexey Khoroshilov a34c72b348 staging: gdm724x: fix leak at failure path in gdm_usb_probe()
Error handling code in gdm_usb_probe() deallocates all resources,
but calls usb_get_dev(usbdev) and returns error code after that.

The patch fixes it and, by the way, several other issues:
- no need to use GFP_ATOMIC in probe();
- return -ENODEV instead of -1;
- kmalloc+memset -> kzalloc

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-11-25 12:29:15 -08:00
..
gdm_endian.c staging: gdm724x: Modified function name conflict set_endian 2013-07-29 11:29:37 -07:00
gdm_endian.h staging: gdm724x: Modified function name conflict set_endian 2013-07-29 11:29:37 -07:00
gdm_lte.c Staging: gdm724x: Remove confusing macro gdm_lte_sdu_send in gdm_lte.c 2013-11-11 15:55:16 -08:00
gdm_lte.h staging: gdm724x: Remove version.h header inclusion in gdm_lte.h 2013-07-25 12:11:58 -07:00
gdm_mux.c Staging: gdm724x: Use ALIGN() macro for dummy_cnt in gdm_mux.c 2013-11-10 12:24:30 -08:00
gdm_mux.h staging: gdm7240: a TTY rewrite according to the latest TTY APIs 2013-08-19 15:30:59 -07:00
gdm_tty.c Staging: gdm724x: fix line over 80 characters in gdm_tty.c 2013-10-11 13:09:57 -07:00
gdm_tty.h staging: gdm7240: a TTY rewrite according to the latest TTY APIs 2013-08-19 15:30:59 -07:00
gdm_usb.c staging: gdm724x: fix leak at failure path in gdm_usb_probe() 2013-11-25 12:29:15 -08:00
gdm_usb.h staging: gdm724x: Remove version.h header inclusion in gdm_usb.h 2013-07-25 12:11:58 -07:00
hci_packet.h
hci.h
Kconfig staging: gdm724x: depend on CONFIG_TTY 2013-07-29 12:27:40 -07:00
Makefile
netlink_k.c staging: gdm724x: Remove version.h header inclusion in netlink_k.c 2013-08-27 22:53:22 -07:00
netlink_k.h
TODO staging: gdm724x: add tty stuff to TODO file. 2013-07-24 13:16:53 -07:00