]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix suspicious RCU usage
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 26 Oct 2016 14:33:31 +0000 (10:33 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 7 Nov 2016 19:35:59 +0000 (14:35 -0500)
commitc56959c05d27d1e9cacfae6a5bfed520fb715eb7
treef906f39e20f6a487c65ffb935e870866da4fd99a
parent63ce3b44c51a6d4763ce490d03414f2e54a60ce4
SUNRPC: Fix suspicious RCU usage

We need to hold the rcu_read_lock() when calling rcu_dereference(),
otherwise we can't guarantee that the object being dereferenced still
exists.

Fixes: a5365d81 ("SUNRPC search xprt switch for sockaddr")
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/clnt.c