[PATCH] debugfs inode leak
authorJens Axboe <axboe@suse.de>
Thu, 8 Jun 2006 08:26:39 +0000 (10:26 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 8 Jun 2006 22:14:24 +0000 (15:14 -0700)
Looking at the reiser4 crash, I found a leak in debugfs. In
debugfs_mknod(), we create the inode before checking if the dentry
already has one attached. We don't free it if that is the case.

These bugs happen quite often, I'm starting to think we should disallow
such coding in CodingStyle.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

No differences found