mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 02:01:29 +00:00
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>
This commit is contained in:
parent
de1f8e4a0a
commit
78fcbdae22
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user