From: Vladimirs Ambrosovs Date: Mon, 25 May 2015 20:22:44 +0000 (+0300) Subject: staging: fwserial: fix resource leak X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~455 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=904998bf542309735f944387c158ceed84f6abc6;p=pandora-kernel.git 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 Reviewed-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed