aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorEzequiel Garcia <[email protected]>2014-02-16 12:29:53 -0300
committerTejun Heo <[email protected]>2014-02-16 11:51:17 -0500
commit8ad116e649b21a42e3cccfb3c1b8d5ea52ba19e5 (patch)
treec5a69d0a235864821b6ad4d46c9a280b72f95e7f /tools/perf/util/trace-event-scripting.c
parent9f9c47f00ce99329b1a82e2ac4f70f0fe3db549c (diff)
ata: sata_mv: Cleanup only the initialized ports
When an error occurs in the port initialization loop, currently the driver tries to cleanup all the ports. This results in a NULL pointer dereference if the ports were only partially initialized. Fix this by updating only the number of initialized ports (either with failure or successfully), before jumping to the error path and looping over that number in the cleanup loop. Cc: Andrew Lunn <[email protected]> Reported-by: Mikael Pettersson <[email protected]> Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Tejun Heo <[email protected]> Cc: [email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions