]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cxgb4: fix a memory leak bug
authorWenwen Wang <wenwen@cs.uga.edu>
Tue, 13 Aug 2019 09:18:52 +0000 (04:18 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commit6eac7fc21ce99a1fe676694284b80de51db292fa
treea7e16a66a65eeffd5cf165dd788d439d49c6ca47
parentc4f5b116b69623b01720b99af28a85dc70c571fe
cxgb4: fix a memory leak bug

BugLink: https://bugs.launchpad.net/bugs/1843463
[ Upstream commit c554336efa9bbc28d6ec14efbee3c7d63c61a34f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c