Skip to content

Commit fadfc57

Browse files
Marc Dionnedavem330
authored andcommitted
rxrpc: Fix error when reading rxrpc tokens
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: 84924aa ("rxrpc: Fix checker warning") Signed-off-by: Marc Dionne <[email protected]> Signed-off-by: David Howells <[email protected]> cc: "David S. Miller" <[email protected]> cc: Eric Dumazet <[email protected]> cc: Jakub Kicinski <[email protected]> cc: Paolo Abeni <[email protected]> cc: [email protected] cc: [email protected] Signed-off-by: David S. Miller <[email protected]>
1 parent b148b9a commit fadfc57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/rxrpc/key.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ static long rxrpc_read(const struct key *key,
680680
return -ENOPKG;
681681
}
682682

683-
if (WARN_ON((unsigned long)xdr - (unsigned long)oldxdr ==
683+
if (WARN_ON((unsigned long)xdr - (unsigned long)oldxdr !=
684684
toksize))
685685
return -EIO;
686686
}

0 commit comments

Comments
 (0)