aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorAndreas Gruenbacher <[email protected]>2014-02-19 10:49:07 +0100
committerJens Axboe <[email protected]>2014-02-21 15:42:34 -0800
commitf597f6b8dfaa033be3b3b755e6c0ab3caee96dcd (patch)
tree048a1e13e96fd13adb322009f71bf7ff07de67be /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parent2457b6d5ee1a9ff8a3c15ea8eaa5bc195a47d326 (diff)
drbd: Fix future possible NULL pointer dereference
Right now every resource has exactly one connection. But we are preparing for dynamic connections. I.e. in the future thre can be resources without connections. However smatch points this out as 'variable dereferenced before check', which is correct. This issue was introduced in drbd: get_one_status(): Iterate over resource->devices instead of connection->peer_devices Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]> Signed-off-by: Philipp Reisner <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions