From: Alexey Khoroshilov Date: Thu, 12 Sep 2013 20:51:20 +0000 (+0400) Subject: net/irda/mcs7780: fix memory leaks in mcs_net_open() X-Git-Tag: v3.12-rc2~14^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8947312987e3d8b3457452c27d3bdacde9984f47;p=pandora-kernel.git net/irda/mcs7780: fix memory leaks in mcs_net_open() If rx_urb allocation fails in mcs_setup_urbs(), tx_urb leaks. If mcs_receive_start() fails in mcs_net_open(), the both urbs are not deallocated. The patch fixes the issues and by the way fixes label indentation. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: David S. Miller --- Reading git-diff-tree failed