aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
authorBenjamin Coddington <[email protected]>2019-06-07 10:37:30 +0000
committerAnna Schumaker <[email protected]>2019-06-21 18:43:25 +0000
commit909105199a682cb09c500acd443d34b182846c9c (patch)
tree3be6cbff83397bca6bf272bf6197ec99f4c928c8 /net/tipc/node.c
parentLinux 5.2-rc5 (diff)
downloadkernel-909105199a682cb09c500acd443d34b182846c9c.tar.gz
kernel-909105199a682cb09c500acd443d34b182846c9c.zip
NFS4: Only set creation opendata if O_CREAT
We can end up in nfs4_opendata_alloc during task exit, in which case current->fs has already been cleaned up. This leads to a crash in current_umask(). Fix this by only setting creation opendata if we are actually doing an open with O_CREAT. We can drop the check for NULL nfs4_open_createattrs, since O_CREAT will never be set for the recovery path. Suggested-by: Trond Myklebust <[email protected]> Signed-off-by: Benjamin Coddington <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions