]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rxrpc: Fix error when reading rxrpc tokens
authorMarc Dionne <marc.dionne@auristor.com>
Fri, 21 Apr 2023 16:16:17 +0000 (17:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:19 +0000 (23:11 +0900)
commit4b8669ed1499ad790d0d38c222af8d6cfc7e9758
tree1539868d29ec2d7d496fbd662e190415b14329a6
parent32a5a13d556e4f804e5a447a08c70b172d600707
rxrpc: Fix error when reading rxrpc tokens

[ Upstream commit fadfc57cc8047080a123b16f288b7138524fb1e2 ]

When converting from ASSERTCMP to WARN_ON, the tested condition must
be inverted, which was missed for this case.

This would cause an EIO error when trying to read an rxrpc token, for
instance when trying to display tokens with AuriStor's "tokens" command.

Fixes: 84924aac08a4 ("rxrpc: Fix checker warning")
Signed-off-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: "David S. Miller" <davem@davemloft.net>
cc: Eric Dumazet <edumazet@google.com>
cc: Jakub Kicinski <kuba@kernel.org>
cc: Paolo Abeni <pabeni@redhat.com>
cc: linux-afs@lists.infradead.org
cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/rxrpc/key.c