]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Ignore connections that have cl_rpcclient uninitialized
authorPetr Vandrovec <petr@vandrovec.name>
Mon, 7 Nov 2016 20:11:29 +0000 (12:11 -0800)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 7 Nov 2016 21:11:29 +0000 (16:11 -0500)
commitae9b65ee120b94e077b57e5d500de9e27ad2fc66
tree3c0e59bf61c4776fa97364bd0a30e13a410fdd02
parent9e504f64e695598a7b546affcae921a1195ff726
NFS: Ignore connections that have cl_rpcclient uninitialized

cl_rpcclient starts as ERR_PTR(-EINVAL), and connections like that
are floating freely through the system.  Most places check whether
pointer is valid before dereferencing it, but newly added code
in nfs_match_client does not.

Which causes crashes when more than one NFS mount point is present.

Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/client.c