diff options
author | Aditya Pakki <pakki001@umn.edu> | 2019-03-20 17:34:09 +0100 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2019-03-22 11:26:01 +0100 |
commit | 9aabb68568b473bf2f0b179d053b403961e42e4d (patch) | |
tree | 8dc07888afcc3d562ab9eabb4b02a3d694c8c2e7 /drivers/leds/leds-lp5521.c | |
parent | thunderbolt: Fix to check for kmemdup failure (diff) | |
download | linux-9aabb68568b473bf2f0b179d053b403961e42e4d.tar.xz linux-9aabb68568b473bf2f0b179d053b403961e42e4d.zip |
thunderbolt: Fix to check return value of ida_simple_get
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 <pakki001@umn.edu>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/leds/leds-lp5521.c')
0 files changed, 0 insertions, 0 deletions