From: Lars Ellenberg Date: Wed, 14 May 2014 19:34:47 +0000 (+0200) Subject: drbd: fix drbd_destroy_device reference count updates X-Git-Tag: omap-for-v3.17/fixes-against-rc2~74^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8ba0d606933c34c13ea971491a7e0dfa50208ef;p=pandora-kernel.git drbd: fix drbd_destroy_device reference count updates drbd_destroy_device means to give up reference counts on the connection(s) reachable via the peer_device(s). It must not do that by iterating via device->resource->connections, resource and connections may have already been disassociated by drbd_free_resource, and we'd leak connection refs. Instead, iterate via device->peer_devices->connection. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed