drbd: drbd_adm_prepare(): Only set adm_ctx.connection when a connection is requested
authorAndreas Gruenbacher <agruen@linbit.com>
Wed, 6 Jul 2011 13:05:58 +0000 (15:05 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:46:45 +0000 (16:46 +0100)
Also change drbd_adm_connect() to expect a resource after it requested one.

Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
drivers/block/drbd/drbd_nl.c

Simple merge