[fuse] fix race between checking and setting file->private_data
BKL does not protect against races if the task may sleep between
checking and setting a value. So move checking of file->private_data
near to setting it in fuse_fill_super().
Found by Al Viro.
Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
Showing
想要评论请 注册 或 登录