Zhengchao Shao
3ad47c8aa5
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>
2023-01-12 12:02:33 +01:00
..
2022-08-22 17:57:35 -07:00
2022-07-22 12:51:45 +01:00
2022-08-22 17:57:35 -07:00
2022-08-22 17:57:35 -07:00
2023-01-12 12:02:33 +01:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:22 -07:00
2020-08-25 07:50:25 -07:00
2021-12-28 12:52:24 +00:00
2020-09-05 15:57:05 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:22 -07:00
2022-11-14 10:51:13 +00:00
2020-06-14 01:57:21 +09:00
2017-11-02 11:10:55 +01:00