acrn-kernel/net/caif
Zhengchao Shao 3ad47c8aa5 caif: fix memory leak in cfctrl_linkup_request()
[ Upstream commit fe69230f05 ]

When linktype is unknown or kzalloc failed in cfctrl_linkup_request(),
pkt is not released. Add release process to error path.

Fixes: b482cd2053 ("net-caif: add CAIF core protocol stack")
Fixes: 8d545c8f95 ("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
..
Kconfig
Makefile
caif_dev.c caif: move from strlcpy with unused retval to strscpy 2022-08-22 17:57:35 -07:00
caif_socket.c
caif_usb.c caif: move from strlcpy with unused retval to strscpy 2022-08-22 17:57:35 -07:00
cfcnfg.c caif: move from strlcpy with unused retval to strscpy 2022-08-22 17:57:35 -07:00
cfctrl.c caif: fix memory leak in cfctrl_linkup_request() 2023-01-12 12:02:33 +01:00
cfdbgl.c
cfdgml.c
cffrml.c
cfmuxl.c
cfpkt_skbuff.c
cfrfml.c
cfserl.c
cfsrvl.c
cfutill.c
cfveil.c
cfvidl.c
chnl_net.c net: caif: fix double disconnect client in chnl_net_open() 2022-11-14 10:51:13 +00:00