]> asedeno.scripts.mit.edu Git - linux.git/commit
drbd: abort drbd_start_resync if there is no connection
authorRoland Kammerer <roland.kammerer@linbit.com>
Tue, 29 Aug 2017 08:20:47 +0000 (10:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Aug 2017 21:34:46 +0000 (15:34 -0600)
commitd3d2948f4353300e483e03be3f400dc07cf504ce
treefb3af994750712c1cc04156cfeba8f3f9385f441
parent183ece30053f1597120ee30174955d7a971bc146
drbd: abort drbd_start_resync if there is no connection

This was found by a static analysis tool. While highly unlikely, be sure
to return without dereferencing the NULL pointer.

Reported-by: Shaobo <shaobo@cs.utah.edu>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_worker.c