diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2010-12-13 01:44:11 +0100 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 16:44:47 +0100 |
commit | 22ab6a30b8225b35b02202ee79dd270ddd09e948 (patch) | |
tree | 541a8127edaa9fbb8c64dfe4ab236685e3891d62 /drivers/block/drbd/drbd_nl.c | |
parent | 82bc01940ac9142a89b1823c0f2ea2623a92e18d (diff) | |
download | lwn-22ab6a30b8225b35b02202ee79dd270ddd09e948.tar.gz lwn-22ab6a30b8225b35b02202ee79dd270ddd09e948.zip |
drbd: drbd_bm_read() never returns a positive value through drbd_bitmap_io()
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_nl.c')
-rw-r--r-- | drivers/block/drbd/drbd_nl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index d903fb5ea41c..f1ec727f7df5 100644 --- a/drivers/block/drbd/drbd_nl.c +++ b/drivers/block/drbd/drbd_nl.c @@ -1488,7 +1488,7 @@ int drbd_adm_attach(struct sk_buff *skb, struct genl_info *info) } } else { if (drbd_bitmap_io(mdev, &drbd_bm_read, - "read from attaching", BM_LOCKED_MASK) < 0) { + "read from attaching", BM_LOCKED_MASK)) { retcode = ERR_IO_MD_DISK; goto force_diskless_dec; } |