diff options
author | Dan Carpenter <error27@gmail.com> | 2010-04-22 16:27:23 +0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-04-22 16:27:23 +0400 |
commit | 7ac314c82f552eefebaa91c9fffe8c0d435641b9 (patch) | |
tree | 08143785dae9710e291af83aae8278576f103786 /drivers/block | |
parent | 6de9400250f95f82da432c28b9b43823f4154c58 (diff) | |
download | linux-7ac314c82f552eefebaa91c9fffe8c0d435641b9.tar.xz |
drbd: fix memory leak
We leak memory if "--dry-run" is not supported by the peer.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 67e0fc542249..93d1f9b469d4 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -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; } } |