From: Lars Ellenberg Date: Mon, 30 Jul 2012 07:06:26 +0000 (+0200) Subject: drbd: fix null pointer dereference with on-congestion policy when diskless X-Git-Tag: v3.8-rc1~78^2~18^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b9ef85e05f123f535d4ee1c5041b80f80648e50;p=pandora-kernel.git drbd: fix null pointer dereference with on-congestion policy when diskless We must not look at mdev->actlog, unless we have a get_ldev() reference. It also does not make much sense to try to disconnect or pull-ahead of the peer, if we don't have good local data. Only even consider congestion policies, if our local disk is D_UP_TO_DATE. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed