Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-rc7 /net/rxrpc/rxkad.c

Filename:/net/rxrpc/rxkad.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.6.25-rc6  2.6.25-rc5  2.6.25-rc4  2.6.25-rc3  2.6.25-rc2  2.6.25-rc1 
(Following) 2.6.25-rc7-git6  2.6.25-rc8  2.6.25-rc9  2.6.25  2.6.25-git7  2.6.25-git8 

Location
[  2.6.25-rc7
  [  net
    [  rxrpc
       o  rxkad.c

Patch

diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c
index 8e69d69..f48434a 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,
 
    /* calculate the security checksum */
    x = htonl(call->channel << (32 - RXRPC_CIDSHIFT));
-   x |= sp->hdr.seq & __constant_cpu_to_be32(0x3fffffff);
+   x |= sp->hdr.seq & cpu_to_be32(0x3fffffff);
    tmpbuf.x[0] = sp->hdr.callNumber;
    tmpbuf.x[1] = x;
 
@@ -518,7 +518,7 @@ static int rxkad_verify_packet(const struct rxrpc_call *call,
 
    /* validate the security checksum */
    x = htonl(call->channel << (32 - RXRPC_CIDSHIFT));
-   x |= sp->hdr.seq & __constant_cpu_to_be32(0x3fffffff);
+   x |= sp->hdr.seq & cpu_to_be32(0x3fffffff);
    tmpbuf.x[0] = call->call_id;
    tmpbuf.x[1] = x;
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.