]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fix debugfs inode leak
authorJens Axboe <axboe@suse.de>
Fri, 11 Aug 2006 20:43:42 +0000 (22:43 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 11 Aug 2006 20:43:42 +0000 (22:43 +0200)
commit02ee43fcfd3f10b7416e1402263b6b49853e4e48
tree2085511f0f3cb7eef47f3623342a97f4a7706623
parentdec0370af02c080b1a9c240058a9887fc53a5f08
fix debugfs inode leak

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.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
fs/debugfs/inode.c