commit | 8947312987e3d8b3457452c27d3bdacde9984f47 | [log] [tgz] |
---|---|---|
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | Fri Sep 13 00:51:20 2013 +0400 |
committer | David S. Miller <davem@davemloft.net> | Thu Sep 12 23:43:56 2013 -0400 |
tree | 02a4b6c87c06ca57ec787527f3a08febefc1ae38 | |
parent | 38463e2c290426262cd9a75fe66cbbe2925a68c2 [diff] |
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 <khoroshilov@ispras.ru> Signed-off-by: David S. Miller <davem@davemloft.net>