Files
linux/net
Pavel Skripkin 1e976b702e net: caif: fix memory leak in cfusbl_device_notify
commit 7f5d86669f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 11:12:00 +09:00
..
2015-03-02 16:43:41 -05:00
2023-05-15 16:07:59 +09:00
2023-05-16 11:10:59 +09:00
2023-05-16 08:30:10 +09:00
2023-05-15 12:05:35 +09:00
2023-05-16 11:11:34 +09:00