diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2007-07-18 09:49:08 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-18 17:38:22 +0200 |
commit | 851a8a7fd451db3dcd5d44d784083f0f66b24d57 (patch) | |
tree | 0d9e96cd7d3edecb05487366b8b1c8d363920516 /.gitignore | |
parent | slob: Kill off duplicate kzalloc() definition. (diff) | |
download | linux-851a8a7fd451db3dcd5d44d784083f0f66b24d57.tar.xz linux-851a8a7fd451db3dcd5d44d784083f0f66b24d57.zip |
dm: fix memory leak in dm_create_persistent() when starting metadata update thread fails
If, in dm_create_persistent(), the call to create_singlethread_workqueue()
fails then we'll return without freeing the memory allocated to 'ps', thus
leaking sizeof(struct pstore) bytes. This patch fixes the leak.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com
Acked-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions