aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2010-12-10 11:09:10 -0500
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-03-10 05:36:27 -0500
commit4114be815f9811da42a21dc2f7ff552833660595 (patch)
treef9f8effcb281ed9c7f03c8b6d35caec7f739a985 /drivers
parentf2024e7ce29f4287395ce879364cd68c7ac226f2 (diff)
drbd: receive_bitmap: Fix the wrong return value
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/drbd/drbd_receiver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index 732aacb46a32..44b102d41b4a 100644
--- a/drivers/block/drbd/drbd_receiver.c
+++ b/drivers/block/drbd/drbd_receiver.c
@@ -3499,7 +3499,7 @@ static int receive_bitmap(struct drbd_conf *mdev, enum drbd_packets cmd, unsigne
3499 goto out; 3499 goto out;
3500 if (data_size <= (sizeof(*p) - sizeof(p->head))) { 3500 if (data_size <= (sizeof(*p) - sizeof(p->head))) {
3501 dev_err(DEV, "ReportCBitmap packet too small (l:%u)\n", data_size); 3501 dev_err(DEV, "ReportCBitmap packet too small (l:%u)\n", data_size);
3502 return FAILED; 3502 return false;
3503 } 3503 }
3504 ret = decode_bitmap_c(mdev, p, &c); 3504 ret = decode_bitmap_c(mdev, p, &c);
3505 } else { 3505 } else {