aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2014-04-28 18:43:35 +0200
committerJens Axboe <axboe@fb.com>2014-04-30 13:46:56 -0600
commitec4a340789be16831ae96be5f7552238a7a6e903 (patch)
tree5571ed3e41b1afaaf2633dc135e62351ed162aa8 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentdrbd: Allow attaching of a newly created device to any backing device (diff)
downloadwireguard-linux-ec4a340789be16831ae96be5f7552238a7a6e903.tar.xz
wireguard-linux-ec4a340789be16831ae96be5f7552238a7a6e903.zip
drbd: use list_first_entry_or_null in first_peer_device/first_connection
If there are no peer_devices or connections, I'd rather have NULL than some "arbitrary" address pretending to point to a struct. Helps to avoid hard to debug symptoms, in case we ever try to use and dereference a drbd_connection or drbd_peer_device where we in fact don't have any connection at all. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions