summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_interval.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2012-10-19 12:19:23 (GMT)
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-09 13:11:42 (GMT)
commitfd0017c1243b2b9058525672b9ea13272fb51b30 (patch)
tree529e6eaef73f2ac210e12f9bc4eb8a6178e1894c /drivers/block/drbd/drbd_interval.c
parent4035e4c2ebeb6ac1acbf4e5dd8a759fcf93ff8da (diff)
downloadlinux-fsl-qoriq-fd0017c1243b2b9058525672b9ea13272fb51b30.tar.xz
drbd: fix regression: potential NULL pointer dereference
recent commit drbd: always write bitmap on detach introduced a bitmap writeout during detach, which obviously needs some meta data device to write to. Unfortunately, that same error path may be taken if we fail to attach, e.g. due to UUID mismatch, after we changed state to D_ATTACHING, but before the lower level device pointer is even assigned. We need to test for presence of mdev->ldev. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_interval.c')
0 files changed, 0 insertions, 0 deletions