kernel-ark/drivers/block/drbd
Andreas Gruenbacher f597f6b8df 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 <dan.carpenter@oracle.com>
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2014-02-21 15:42:34 -08:00
..
drbd_actlog.c drbd: Create a dedicated struct drbd_device_work 2014-02-17 16:50:39 +01:00
drbd_bitmap.c drbd: Kill drbd_task_to_thread_name() 2014-02-17 16:50:35 +01:00
drbd_int.h drbd: Add drbd_thread->resource and make drbd_thread->connection optional 2014-02-17 16:50:48 +01:00
drbd_interval.c Merge branch 'drbd-8.4_ed6' into for-3.8-drivers-drbd-8.4_ed6 2012-11-09 14:20:23 +01:00
drbd_interval.h
drbd_main.c drbd: Add drbd_thread->resource and make drbd_thread->connection optional 2014-02-17 16:50:48 +01:00
drbd_nl.c drbd: Fix future possible NULL pointer dereference 2014-02-21 15:42:34 -08:00
drbd_nla.c drbd: Split off netlink mandatory attribute handling into separate file 2012-11-08 16:57:45 +01:00
drbd_nla.h drbd: Split off netlink mandatory attribute handling into separate file 2012-11-08 16:57:45 +01:00
drbd_proc.c drbd: Improve some function and variable naming 2014-02-17 16:44:52 +01:00
drbd_protocol.h drbd: Split off on-the-wire protocol definitions 2014-02-17 16:27:49 +01:00
drbd_receiver.c drbd: Remove unused parameter of wire_flags_to_bio() 2014-02-17 16:50:46 +01:00
drbd_req.c drbd: Create a dedicated struct drbd_device_work 2014-02-17 16:50:39 +01:00
drbd_req.h drbd: Create a dedicated struct drbd_device_work 2014-02-17 16:50:39 +01:00
drbd_state.c drbd: struct after_conn_state_chg_work: Use drbd_work instead of drbd_device_work 2014-02-17 16:50:41 +01:00
drbd_state.h drbd: Rename drbd_tconn -> drbd_connection 2014-02-17 16:44:47 +01:00
drbd_strings.c drbd: Move string function prototypes from linux/drbd.h to drbd_string.h 2014-02-17 16:50:37 +01:00
drbd_strings.h drbd: Move string function prototypes from linux/drbd.h to drbd_string.h 2014-02-17 16:50:37 +01:00
drbd_vli.h
drbd_worker.c drbd: Use the right peer device 2014-02-17 16:50:47 +01:00
drbd_wrappers.h drbd: Rename "mdev" to "device" 2014-02-17 16:42:24 +01:00
Kconfig drbd: update Kconfig to match current dependencies 2012-12-06 13:08:29 +01:00
Makefile drbd: Split off netlink mandatory attribute handling into separate file 2012-11-08 16:57:45 +01:00