drbd: fix NULL pointer deref in module init error path
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 23 Oct 2013 08:59:15 +0000 (10:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2013 16:10:28 +0000 (09:10 -0700)
commit69babf05cbe909a9a520b39772655f88b407f257
treebe809717b2f78d06091eef06becc1c502646730b
parent7badfb1c34f85e2b68252e4596d96e9b76f2b0ac
drbd: fix NULL pointer deref in module init error path

If we want to iterate over the (as of yet still empty) list in the
cleanup path, we need to initialize the list before the first goto fail.

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_main.c