diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-04-12 09:39:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-04-12 09:39:47 -0700 |
commit | 50bda5faa6251da85e82db234372f1fc1c69a9d2 (patch) | |
tree | add02c03b6121c0a5b01dc23c07e89a485564ce5 | |
parent | b032227c62939b5481bcd45442b36dfa263f4a7c (diff) | |
parent | 27d231c0c63bb619997a24bab85d54d90ca71110 (diff) | |
download | linux-50bda5faa6251da85e82db234372f1fc1c69a9d2.tar.bz2 |
Merge tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
Pull NFS client bugfix from Trond Myklebust:
"Fix an RCU read lock leakage in pnfs_alloc_ds_commits_list()"
* tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
pNFS: Fix RCU lock leakage
-rw-r--r-- | fs/nfs/pnfs_nfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/pnfs_nfs.c b/fs/nfs/pnfs_nfs.c index 25f135572fc8..e7ddbce48321 100644 --- a/fs/nfs/pnfs_nfs.c +++ b/fs/nfs/pnfs_nfs.c @@ -501,6 +501,7 @@ pnfs_alloc_ds_commits_list(struct list_head *list, rcu_read_lock(); pnfs_put_commit_array(array, cinfo->inode); } + rcu_read_unlock(); return ret; } |