summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-01-09 00:38:27 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-09 05:17:17 +0400
commit5b5f9560354dc5a3a27ce57a86aec6b98531ee21 (patch)
tree908448da30e77e931f62080e3d836cf0f070d389 /drivers/usb/gadget/inode.c
parent48fa57ac2c30a8a0b770b7ad50b4b30c1d12f005 (diff)
downloadlinux-5b5f9560354dc5a3a27ce57a86aec6b98531ee21.tar.xz
functionfs: unfuck failure exits on mount
* if you do dput() of root dentry, do *not* follow that with iput() of root inode. * while we are at it, don't do that dput() at all - you are leaving the pointer in ->s_root and your ->kill_sb() will be very unhappy with that. It will do proper dput(), though, so the easiest way is to leave that to it entirely. * freeing ->s_fs_info is also best left to ->kill_sb() (which will do it anyway), especially since we leave the pointer in place. * that xchg() in ->kill_sb() is not a bug per se, but it's a plain and simple masturbation with fewer excuses than Onan had... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/usb/gadget/inode.c')
0 files changed, 0 insertions, 0 deletions