diff options
| author | Benjamin Coddington <[email protected]> | 2019-06-07 10:37:30 +0000 |
|---|---|---|
| committer | Anna Schumaker <[email protected]> | 2019-06-21 18:43:25 +0000 |
| commit | 909105199a682cb09c500acd443d34b182846c9c (patch) | |
| tree | 3be6cbff83397bca6bf272bf6197ec99f4c928c8 /net/tipc/node.c | |
| parent | Linux 5.2-rc5 (diff) | |
| download | kernel-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
