summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorLars Ellenberg2014-05-14 21:34:47 +0200
committerPhilipp Reisner2014-07-10 18:35:10 +0200
commita8ba0d606933c34c13ea971491a7e0dfa50208ef (patch)
treeec5e37875f545b76e4d4b7c447881f6bbf01f0f5 /init
parentdrbd: poison free'd device, resource and connection structs (diff)
downloadkernel-qcow2-linux-a8ba0d606933c34c13ea971491a7e0dfa50208ef.tar.gz
kernel-qcow2-linux-a8ba0d606933c34c13ea971491a7e0dfa50208ef.tar.xz
kernel-qcow2-linux-a8ba0d606933c34c13ea971491a7e0dfa50208ef.zip
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 <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions