Files
linux/net/caif
Pavel Skripkin 81afc61cb6 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>
2021-06-10 12:42:36 +02:00
..
2021-06-10 12:42:36 +02:00
2019-05-08 07:19:07 +02:00
2016-02-18 14:59:35 -05:00
2016-06-28 05:26:14 -04:00