aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8712/rtl871x_sta_mgt.c
diff options
context:
space:
mode:
authorVladimirs Ambrosovs <rodriguez.twister@gmail.com>2015-05-25 23:22:44 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-31 11:47:57 +0900
commit904998bf542309735f944387c158ceed84f6abc6 (patch)
tree3cddb7dba8430213cb0da4beb760f84bf49b284e /drivers/staging/rtl8712/rtl871x_sta_mgt.c
parentstaging: rtl8712: Use ether_addr_copy() instead of memcpy() (diff)
downloadlinux-dev-904998bf542309735f944387c158ceed84f6abc6.tar.xz
linux-dev-904998bf542309735f944387c158ceed84f6abc6.zip
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>
Diffstat (limited to 'drivers/staging/rtl8712/rtl871x_sta_mgt.c')
0 files changed, 0 insertions, 0 deletions