From: Andreas Gruenbacher Date: Fri, 10 Dec 2010 16:09:10 +0000 (+0100) Subject: drbd: receive_bitmap: Fix the wrong return value X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4114be815f9811da42a21dc2f7ff552833660595;p=linux-beck.git drbd: receive_bitmap: Fix the wrong return value Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- 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 goto out; if (data_size <= (sizeof(*p) - sizeof(p->head))) { dev_err(DEV, "ReportCBitmap packet too small (l:%u)\n", data_size); - return FAILED; + return false; } ret = decode_bitmap_c(mdev, p, &c); } else {