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: 7ad65bf68d70 ("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
..
2021-03-30 16:54:50 -07:00
2021-04-29 11:57:23 -07:00
2021-03-26 20:41:52 -07:00
2021-04-09 16:34:56 -07:00
2021-05-24 14:10:28 -07:00
2021-04-29 11:57:23 -07:00
2021-05-21 14:46:59 -07:00
2021-04-29 11:57:23 -07:00
2021-05-07 11:23:41 -07:00
2021-01-24 14:27:18 +01:00
2021-03-28 17:31:13 -07:00
2021-03-25 16:56:27 -07:00