Re: [PATCH v3] thunderbolt: Fix to check return value of ida_simple_get

2019-03-22 Thread Mika Westerberg
On Wed, Mar 20, 2019 at 11:34:09AM -0500, Aditya Pakki wrote: > In enumerate_services, ida_simple_get on failure can return an error and > leaks memory. The patch ensures that the dev_set_name is set on non > failure cases, and releases memory during failure. > > Signed-off-by: Aditya Pakki

[PATCH v3] thunderbolt: Fix to check return value of ida_simple_get

2019-03-20 Thread Aditya Pakki
In enumerate_services, ida_simple_get on failure can return an error and leaks memory. The patch ensures that the dev_set_name is set on non failure cases, and releases memory during failure. Signed-off-by: Aditya Pakki --- v2: Remove kfree in device_register failure v1: Missed cleanup of svc