From: Lars Ellenberg Date: Fri, 8 Jun 2012 12:17:36 +0000 (+0200) Subject: drbd: fix null pointer dereference with on-congestion policy when diskless X-Git-Tag: v3.5-rc6~20^2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d5934e3c258fc5decc4103600c597086fd95a52;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