linux/drivers/staging/fwserial
Vladimirs Ambrosovs 904998bf54 staging: fwserial: fix resource leak
This patch fixes the leak, which was present in fwserial driver in the
init function. In case the tty driver allocation failed the function
returned error, leaving debugfs entry in the filesystem.

To fix the issue additional error label was added, so that the code will
jump to it in case of allocation failure, and free debugfs entries.

Signed-off-by: Vladimirs Ambrosovs <rodriguez.twister@gmail.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-05-31 11:47:57 +09:00
..
Kconfig staging/fwserial: Add Kconfig options for max ports 2013-12-08 17:03:03 -08:00
Makefile
TODO staging/fwserial: Create loop device the 'tty' way 2013-01-29 23:28:45 -05:00
dma_fifo.c Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
dma_fifo.h fwserial: (coding style) removing FSF postal address 2014-04-25 14:01:40 -07:00
fwserial.c staging: fwserial: fix resource leak 2015-05-31 11:47:57 +09:00
fwserial.h Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00