summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2010-12-10 22:18:27 +0100
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-03-10 11:36:30 +0100
commit78fcbdae224469cb48767fa29ca41f1d5890e57c (patch)
tree3605a86116e0e671988e2094f21bbe4a6e33418c /drivers/block
parentde1f8e4a0af3c2d0dff9f6341fead4b509941282 (diff)
drbd: receive_bitmap: Missing free_page() on error path
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block')
-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 2a604e7b7a0..f217d351d77 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 false;
+ goto out;
}
ret = decode_bitmap_c(mdev, p, &c);
} else {