kernel-ark/drivers/block/drbd
Lars Ellenberg ec4a340789 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>
2014-04-30 13:46:56 -06:00
..
drbd_actlog.c
drbd_bitmap.c
drbd_int.h drbd: use list_first_entry_or_null in first_peer_device/first_connection 2014-04-30 13:46:56 -06:00
drbd_interval.c
drbd_interval.h
drbd_main.c
drbd_nl.c drbd: Allow attaching of a newly created device to any backing device 2014-04-30 13:46:56 -06:00
drbd_nla.c
drbd_nla.h
drbd_proc.c
drbd_protocol.h
drbd_receiver.c
drbd_req.c drbd: evaluate disk and network timeout on different requests 2014-04-30 13:46:55 -06:00
drbd_req.h
drbd_state.c
drbd_state.h
drbd_strings.c
drbd_strings.h
drbd_vli.h
drbd_worker.c
Kconfig
Makefile