diff options
author | Joern Engel <joern@logfs.org> | 2010-04-15 08:03:57 +0200 |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2010-04-15 08:03:57 +0200 |
commit | 1f1b0008e8dd1930d6e89522c70f4a438374302a (patch) | |
tree | fb35404bdb4db79925891779e3be118eca8e85dd /fs/logfs/segment.c | |
parent | [LogFS] Move assertion (diff) | |
download | linux-1f1b0008e8dd1930d6e89522c70f4a438374302a.tar.xz linux-1f1b0008e8dd1930d6e89522c70f4a438374302a.zip |
[LogFS] Prevent mempool_destroy NULL pointer dereference
It would probably be better to just accept NULL pointers in
mempool_destroy(). But for the current -rc series let's keep things
simple.
This patch was lost in the cracks for a while.
Kevin Cernekee <cernekee@gmail.com> had to rediscover the problem and
send a similar patch because of it. :(
Signed-off-by: Joern Engel <joern@logfs.org>
Diffstat (limited to 'fs/logfs/segment.c')
-rw-r--r-- | fs/logfs/segment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/logfs/segment.c b/fs/logfs/segment.c index 02db22ebbf13..8c82fe05d3e1 100644 --- a/fs/logfs/segment.c +++ b/fs/logfs/segment.c @@ -912,7 +912,7 @@ err: for (i--; i >= 0; i--) free_area(super->s_area[i]); free_area(super->s_journal_area); - mempool_destroy(super->s_alias_pool); + logfs_mempool_destroy(super->s_alias_pool); return -ENOMEM; } |