summaryrefslogtreecommitdiffstats
path: root/fs/timerfd.c
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2019-06-07 06:37:30 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-06-21 14:43:25 -0400
commit909105199a682cb09c500acd443d34b182846c9c (patch)
tree3be6cbff83397bca6bf272bf6197ec99f4c928c8 /fs/timerfd.c
parent9e0babf2c06c73cda2c0cd37a1653d823adb40ec (diff)
downloadlinux-909105199a682cb09c500acd443d34b182846c9c.tar.bz2
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 <trondmy@hammerspace.com> Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/timerfd.c')
0 files changed, 0 insertions, 0 deletions