diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2023-01-04 09:51:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-14 12:16:48 +0300 |
commit | 84b2cc7b36b7f6957d307fb3d01603f93cb2d655 (patch) | |
tree | bec8dc0db2f72cf3588ef07cbdaf6c03f3eb0b2a /fs | |
parent | e5a05837445e48620636551d5de98ddd3939ad7f (diff) | |
download | linux-84b2cc7b36b7f6957d307fb3d01603f93cb2d655.tar.xz |
caif: fix memory leak in cfctrl_linkup_request()
[ Upstream commit fe69230f05897b3de758427b574fc98025dfc907 ]
When linktype is unknown or kzalloc failed in cfctrl_linkup_request(),
pkt is not released. Add release process to error path.
Fixes: b482cd2053e3 ("net-caif: add CAIF core protocol stack")
Fixes: 8d545c8f958f ("caif: Disconnect without waiting for response")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230104065146.1153009-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions