configfs_detach_prep(): make sure that wait_mutex won't go away
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 12 Apr 2016 04:37:59 +0000 (00:37 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 2 May 2016 23:47:22 +0000 (19:47 -0400)
commit48f35b7b7367c6c2594f9c209ee2e1362519a899
tree762d2c58ee6f2bdcb99f27fcbc91a259e79a9a9c
parent779b839133d7ab23229be7e601cabab7678ceab1
configfs_detach_prep(): make sure that wait_mutex won't go away

grab a reference to dentry we'd got the sucker from, and return
that dentry via *wait, rather than just returning the address of
->i_mutex.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/configfs/dir.c