diff options
Diffstat (limited to 'net/rxrpc/rxkad.c')
-rw-r--r-- | net/rxrpc/rxkad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c index 8e69d6993833..f48434adb7c2 100644 --- a/net/rxrpc/rxkad.c +++ b/net/rxrpc/rxkad.c | |||
@@ -284,7 +284,7 @@ static int rxkad_secure_packet(const struct rxrpc_call *call, | |||
284 | 284 | ||
285 | /* calculate the security checksum */ | 285 | /* calculate the security checksum */ |
286 | x = htonl(call->channel << (32 - RXRPC_CIDSHIFT)); | 286 | x = htonl(call->channel << (32 - RXRPC_CIDSHIFT)); |
287 | x |= sp->hdr.seq & __constant_cpu_to_be32(0x3fffffff); | 287 | x |= sp->hdr.seq & cpu_to_be32(0x3fffffff); |
288 | tmpbuf.x[0] = sp->hdr.callNumber; | 288 | tmpbuf.x[0] = sp->hdr.callNumber; |
289 | tmpbuf.x[1] = x; | 289 | tmpbuf.x[1] = x; |
290 | 290 | ||
@@ -518,7 +518,7 @@ static int rxkad_verify_packet(const struct rxrpc_call *call, | |||
518 | 518 | ||
519 | /* validate the security checksum */ | 519 | /* validate the security checksum */ |
520 | x = htonl(call->channel << (32 - RXRPC_CIDSHIFT)); | 520 | x = htonl(call->channel << (32 - RXRPC_CIDSHIFT)); |
521 | x |= sp->hdr.seq & __constant_cpu_to_be32(0x3fffffff); | 521 | x |= sp->hdr.seq & cpu_to_be32(0x3fffffff); |
522 | tmpbuf.x[0] = call->call_id; | 522 | tmpbuf.x[0] = call->call_id; |
523 | tmpbuf.x[1] = x; | 523 | tmpbuf.x[1] = x; |
524 | 524 | ||