]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc: avoid extra pde_put() in proc_fill_super()
authorMaxim Patlasov <mpatlasov@parallels.com>
Thu, 7 Feb 2013 01:25:48 +0000 (12:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:45:19 +0000 (16:45 +1100)
commit072b39a4a2e3652c3b4427ee4e2e76f39cc27735
tree64cbc052bbd4615d1087426af3dde51320ec2d94
parentb57ab0c9bc5782915f1e80f206dd4bafe287ab76
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