diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-04-12 18:39:47 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-04-12 18:39:47 +0200 |
commit | 50bda5faa6251da85e82db234372f1fc1c69a9d2 (patch) | |
tree | add02c03b6121c0a5b01dc23c07e89a485564ce5 | |
parent | Merge tag 'nios2-v5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/l... (diff) | |
parent | pNFS: Fix RCU lock leakage (diff) | |
download | linux-50bda5faa6251da85e82db234372f1fc1c69a9d2.tar.xz linux-50bda5faa6251da85e82db234372f1fc1c69a9d2.zip |
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; } |