thunderbolt: Fix memory leak if ida_simple_get() fails in enumerate_services()
commit a663e0df upstream. The svc->key field is not released as it should be if ida_simple_get() fails so fix that. Fixes: 9aabb685 ("thunderbolt: Fix to check return value of ida_simple_get") Cc: stable@vger.kernel.org Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录