]> git.baikalelectronics.ru Git - kernel.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)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Feb 2013 07:46:14 +0000 (02:46 -0500)
commitbf413d8dccc54328aed4cb47642a57cd819605a9
tree8e60b24d094edef3d5b6d347444fe4db8c688f10
parentaefc263aec8b82ef7292958d53bb769428fbd29a
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>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc/inode.c