summaryrefslogtreecommitdiff
path: root/block/bsg.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-07-17 16:36:07 +0200
committerHans de Goede <hdegoede@redhat.com>2021-07-17 16:39:56 +0200
commitf7e506ec4a9966be8b2a87d3324302f0f5dd5a29 (patch)
tree740e74933763e2d25d96c346631916ad0e77c30e /block/bsg.c
parent30e78435d3bf803cabdc2a1c2eb36e6983aa4596 (diff)
platform/x86: think-lmi: Fix possible mem-leaks on tlmi_analyze() error-exit
Fix 2 possible memleaks on error-exits from tlmi_analyze(): 1. If the kzalloc of pwd_power fails, then not only free the atributes, but also the allocated pwd_admin struct. 2. Freeing the attributes should also free the possible_values strings. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20210717143607.3580-3-hdegoede@redhat.com
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions