aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2011-11-28 16:53:13 +0300
committerDavid Woodhouse <[email protected]>2012-01-09 18:07:32 +0000
commitb49e345e61a2e0c4decbe9b1bd670ed5599fac6e (patch)
treee125dca29028b59322fe3b7bb096b4191bff0791 /tools/perf/scripts/python
parent5d3667eee40a88f79f7f826f0b4c3c9647d7ea7a (diff)
mtd: docg3: dereferencing an ERR_PTR() in docg3_probe()
If doc_probe_device() returned an ERR_PTR, then we accidentally saved that to docg3_floors[floor] = mtd; which gets derefenced in the error handling when we call doc_release_device(). I've reworked the error handling to take care of that and hopefully make it a little simpler. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Robert Jarzmik <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions