Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ac314c8 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jens Axboe
Browse files

drbd: fix memory leak



We leak memory if "--dry-run" is not supported by the peer.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 6de94002
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1695,6 +1695,7 @@ int drbd_send_protocol(struct drbd_conf *mdev)
			cf |= CF_DRY_RUN;
		else {
			dev_err(DEV, "--dry-run is not supported by peer");
			kfree(p);
			return 0;
		}
	}