]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pNFS: Fix assignment of xprtdata.cred
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 30 Aug 2023 18:31:31 +0000 (14:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:43 +0000 (12:22 +0200)
commit1473e40b391264d0af3b33941ca70071baec1bb6
treeb4561695f2db24405e2ef418b99e7e59bc3da3ad
parentfb7ddc1138b07b73db407c964dbdfb105aad6ea6
pNFS: Fix assignment of xprtdata.cred

[ Upstream commit c4a123d2e8c4dc91d581ee7d05c0cd51a0273fab ]

The comma at the end of the line was leftover from an earlier refactor
of the _nfs4_pnfs_v3_ds_connect() function. This is technically valid C,
so the compilers didn't catch it, but if I'm understanding how it works
correctly it assigns the return value of rpc_clnt_add_xprtr() to
xprtdata.cred.

Reported-by: Olga Kornievskaia <kolga@netapp.com>
Fixes: a12f996d3413 ("NFSv4/pNFS: Use connections to a DS that are all of the same protocol family")
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/pnfs_nfs.c