projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f2412d
)
dm exception store: fix failed set_chunk_size error path
author
Mikulas Patocka
<mpatocka@redhat.com>
Fri, 16 Oct 2009 22:18:16 +0000
(23:18 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Fri, 16 Oct 2009 22:18:16 +0000
(23:18 +0100)
Properly close the device if failing because of an invalid chunk size.
Cc: stable@kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
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
556acff
..
e5de762
100644
(file)
--- a/
drivers/md/dm-exception-store.c
+++ b/
drivers/md/dm-exception-store.c
@@
-251,7
+251,7
@@
int dm_exception_store_create(struct dm_target *ti, int argc, char **argv,
r = set_chunk_size(tmp_store, argv[2], &ti->error);
if (r)
- goto bad_c
ow
;
+ goto bad_c
tr
;
r = type->ctr(tmp_store, 0, NULL);
if (r) {