projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6de9400
)
drbd: fix memory leak
author
Dan Carpenter
<error27@gmail.com>
Thu, 22 Apr 2010 12:27:23 +0000
(14:27 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 22 Apr 2010 12:27:23 +0000
(14:27 +0200)
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>
drivers/block/drbd/drbd_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/drbd/drbd_main.c
b/drivers/block/drbd/drbd_main.c
index 67e0fc5422497f269bb8ccb9ab1ae24c12db6a09..93d1f9b469d4cce769a5923686bd96753969a491 100644
(file)
--- 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;
}
}