summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2010-12-10 21:18:27 (GMT)
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-03-10 10:36:30 (GMT)
commit78fcbdae224469cb48767fa29ca41f1d5890e57c (patch)
tree3605a86116e0e671988e2094f21bbe4a6e33418c /drivers
parentde1f8e4a0af3c2d0dff9f6341fead4b509941282 (diff)
downloadlinux-78fcbdae224469cb48767fa29ca41f1d5890e57c.tar.xz
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')
-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 2a604e7..f217d35 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 {