projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98766fb
)
[PATCH] device-mapper dm-ioctl: missing put in table load error case
author
Kiyoshi Ueda
<k-ueda@ct.jp.nec.com>
Tue, 22 Nov 2005 05:32:32 +0000
(21:32 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 22 Nov 2005 17:14:30 +0000
(09:14 -0800)
An error path in table_load() forgets to release a table that won't now be
referenced.
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-ioctl.c
b/drivers/md/dm-ioctl.c
index 54ec737195e00f9043a8db9dbc04aff0df09e40f..a90b053368ee3948d49394fe9b4eae2a0c1fcdf2 100644
(file)
--- a/
drivers/md/dm-ioctl.c
+++ b/
drivers/md/dm-ioctl.c
@@
-974,6
+974,7
@@
static int table_load(struct dm_ioctl *param, size_t param_size)
if (!hc) {
DMWARN("device doesn't appear to be in the dev hash table.");
up_write(&_hash_lock);
+ dm_table_put(t);
return -ENXIO;
}