cxgb4: fix a memory leak bug
authorWenwen Wang <wenwen@cs.uga.edu>
Tue, 13 Aug 2019 09:18:52 +0000 (04:18 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2019 03:03:42 +0000 (20:03 -0700)
commitc554336efa9bbc28d6ec14efbee3c7d63c61a34f
tree42f805635256b26be06b10e3e7bd9e5469869ebd
parent6d5afe20397b478192ed8c38ec0ee10fa3aec649
cxgb4: fix a memory leak bug

In blocked_fl_write(), 't' is not deallocated if bitmap_parse_user() fails,
leading to a memory leak bug. To fix this issue, free t before returning
the error.

Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c