]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: Fix a race in set_pnfs_layoutdriver
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 15 Jun 2012 17:02:58 +0000 (13:02 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 19 Jun 2012 17:32:45 +0000 (13:32 -0400)
commitd99f5e2a7a863791fd2be30b729bc2a1ca27f862
treea8636a5d35f0ae5e45f64d27759dd02d7e2ca598
parent691839dee3c3dc11fd94fe731791d09d4b75d7a5
NFSv4.1: Fix a race in set_pnfs_layoutdriver

The call to try_module_get() dereferences ld_type outside the
spin locks, which means that it may be pointing to garbage if
a module unload was in progress.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c