linux/net/caif
Pavel Skripkin 7f5d86669f net: caif: fix memory leak in cfusbl_device_notify
In case of caif_enroll_dev() fail, allocated
link_support won't be assigned to the corresponding
structure. So simply free allocated pointer in case
of error.

Fixes: 7ad65bf68d ("caif: Add support for CAIF over CDC NCM USB interface")
Cc: stable@vger.kernel.org
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-03 15:05:07 -07:00
..
caif_dev.c net: caif: fix memory leak in caif_device_notify 2021-06-03 15:05:07 -07:00
caif_socket.c net: pass a sockptr_t into ->setsockopt 2020-07-24 15:41:54 -07:00
caif_usb.c net: caif: fix memory leak in cfusbl_device_notify 2021-06-03 15:05:07 -07:00
cfcnfg.c net: caif: add proper error handling 2021-06-03 15:05:06 -07:00
cfctrl.c
cfdbgl.c
cfdgml.c
cffrml.c
cfmuxl.c
cfpkt_skbuff.c
cfrfml.c net: caif: fix error code handling 2020-08-25 07:50:25 -07:00
cfserl.c net: caif: added cfserl_release function 2021-06-03 15:05:06 -07:00
cfsrvl.c caif: Remove duplicate macro SRVL_CTRL_PKT_SIZE 2020-09-05 15:57:05 -07:00
cfutill.c
cfveil.c
cfvidl.c
chnl_net.c net: caif: Use netif_rx_any_context(). 2021-02-15 13:21:48 -08:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile