aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2019-03-30 00:17:12 +0000
committerDarren Hart (VMware) <[email protected]>2019-04-16 13:18:23 -0700
commit98e2630284ab741804bd0713e932e725466f2f84 (patch)
tree9fd859658eb3d28d4352f30c8289d3ea7bafd3b1 /tools/perf/scripts/python/bin
parent6cc13c28da5beee0f706db6450e190709700b34a (diff)
platform/x86: alienware-wmi: fix kfree on potentially uninitialized pointer
Currently the kfree of output.pointer can be potentially freeing an uninitalized pointer in the case where out_data is NULL. Fix this by reworking the case where out_data is not-null to perform the ACPI status check and also the kfree of outpoint.pointer in one block and hence ensuring the pointer is only freed when it has been used. Also replace the if (ptr != NULL) idiom with just if (ptr). Fixes: ff0e9f26288d ("platform/x86: alienware-wmi: Correct a memory leak") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Darren Hart (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions