Zhengchao Shao
84b2cc7b36
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-14 10:16:48 +01:00
..
2021-06-10 13:39:24 +02:00
2021-07-28 14:35:38 +02:00
2021-06-10 13:39:25 +02:00
2021-06-10 13:39:24 +02:00
2023-01-14 10:16:48 +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-06-10 13:39:24 +02: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-25 17:45:46 +01:00
2020-06-14 01:57:21 +09:00
2017-11-02 11:10:55 +01:00