]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc: avoid extra pde_put() in proc_fill_super()
authorMaxim Patlasov <mpatlasov@parallels.com>
Wed, 20 Feb 2013 02:13:32 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:01 +0000 (16:52 +1100)
commit627c10f621120deeab0a7c32875db59e5463168f
tree9b2d445e537831959e11ee98bd2c213728407061
parent8d89ca678204750792c53af8520595f28afef122
proc: avoid extra pde_put() in proc_fill_super()

If proc_get_inode() succeeded, but d_make_root() failed, pde_put() for
proc_root will be called twice: the first time due to iput() called from
d_make_root() and the second time directly in the end of
proc_fill_super().

Signed-off-by: Maxim Patlasov <mpatlasov@parallels.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/inode.c