linux/drivers/staging/sbe-2t3e3
Alexey Khoroshilov 4c229df0b1 staging: sbe-2t3e3: fix error handling in t3e3_init_channel()
t3e3_init_channel() incorrectly handles errors in several places:
it returns zero and does not deallocate all required resources.
The patch fixes that places.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-25 15:48:25 -07:00
..
2t3e3.h staging: sbe-2t3e3: use -ve error return codes in dc_init_descriptor_list 2012-09-21 08:57:56 -07:00
Kconfig Staging: Add SBE 2T3E3 WAN driver 2010-08-30 17:36:50 -07:00
Makefile Staging: sbe-2t3e3: Makefile: replace the use of <module>-objs with <module>-y 2010-10-08 07:23:45 -07:00
TODO Staging: Add SBE 2T3E3 WAN driver 2010-08-30 17:36:50 -07:00
cpld.c staging: sbe-2t3e3: Remove code that will never execute 2012-07-19 15:59:58 -07:00
ctrl.c staging: sbe-2t3e3: Remove code that will never execute 2012-07-19 15:59:58 -07:00
ctrl.h Staging: Add SBE 2T3E3 WAN driver 2010-08-30 17:36:50 -07:00
dc.c staging: sbe-2t3e3: use -ve error return codes in dc_init_descriptor_list 2012-09-21 08:57:56 -07:00
exar7250.c staging: sbe-2t3e3: Remove code that will never execute 2012-07-19 15:59:58 -07:00
exar7300.c staging: sbe-2t3e3: Remove code that will never execute 2012-07-19 15:59:58 -07:00
intr.c staging: sbe-2t3e3: Remove code that will never execute 2012-07-19 15:59:58 -07:00
io.c staging: sbe-2t3e3: Remove code that will never execute 2012-07-19 15:59:58 -07:00
main.c Staging: Add SBE 2T3E3 WAN driver 2010-08-30 17:36:50 -07:00
maps.c Staging: Add SBE 2T3E3 WAN driver 2010-08-30 17:36:50 -07:00
module.c staging: sbe-2t3e3: fix error handling in t3e3_init_channel() 2012-09-25 15:48:25 -07:00
netdev.c staging: sbe-2t3e3: fix sparse warnings 2012-09-04 14:22:48 -07:00