projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6076905
)
dm exception store: free tmp_store on persistent flag error
author
Julia Lawall
<julia@diku.dk>
Thu, 10 Dec 2009 23:51:52 +0000
(23:51 +0000)
committer
Alasdair G Kergon
<agk@redhat.com>
Thu, 10 Dec 2009 23:51:52 +0000
(23:51 +0000)
Error handling code following a kmalloc should free the allocated data.
Cc: stable@kernel.org
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-exception-store.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-exception-store.c
b/drivers/md/dm-exception-store.c
index
7dbe652
..
2052159
100644
(file)
--- a/
drivers/md/dm-exception-store.c
+++ b/
drivers/md/dm-exception-store.c
@@
-216,7
+216,8
@@
int dm_exception_store_create(struct dm_target *ti, int argc, char **argv,
type = get_type("N");
else {
ti->error = "Persistent flag is not P or N";
- return -EINVAL;
+ r = -EINVAL;
+ goto bad_type;
}
if (!type) {