* [PATCH] RxRPC: Fix a regression in the RXKAD security module
@ 2008-04-24 19:38 David Howells
2008-04-24 20:21 ` Al Viro
2008-04-24 20:45 ` Linus Torvalds
0 siblings, 2 replies; 3+ messages in thread
From: David Howells @ 2008-04-24 19:38 UTC (permalink / raw)
To: torvalds, akpm, viro; +Cc: dhowells, linux-kernel
Fix a regression in the RXKAD security module introduced in:
commit 91e916cffec7c0153c5cbaa447151862a7a9a047
Author: Al Viro <viro@ftp.linux.org.uk>
Date: Sat Mar 29 03:08:38 2008 +0000
net/rxrpc trivial annotations
A variable was declared as a 16-bit type rather than a 32-bit type.
Signed-off-by: David Howells <dhowells@redhat.com>
---
net/rxrpc/rxkad.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c
index 6d38a81..ba3f6e4 100644
--- a/net/rxrpc/rxkad.c
+++ b/net/rxrpc/rxkad.c
@@ -493,8 +493,8 @@ static int rxkad_verify_packet(const struct rxrpc_call *call,
__be32 x[2];
} tmpbuf __attribute__((aligned(8))); /* must all be in same page */
__be32 x;
- u16 y;
__be16 cksum;
+ u32 y;
int ret;
sp = rxrpc_skb(skb);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] RxRPC: Fix a regression in the RXKAD security module
2008-04-24 19:38 [PATCH] RxRPC: Fix a regression in the RXKAD security module David Howells
@ 2008-04-24 20:21 ` Al Viro
2008-04-24 20:45 ` Linus Torvalds
1 sibling, 0 replies; 3+ messages in thread
From: Al Viro @ 2008-04-24 20:21 UTC (permalink / raw)
To: David Howells; +Cc: torvalds, akpm, linux-kernel
On Thu, Apr 24, 2008 at 08:38:56PM +0100, David Howells wrote:
> Fix a regression in the RXKAD security module introduced in:
>
> commit 91e916cffec7c0153c5cbaa447151862a7a9a047
> Author: Al Viro <viro@ftp.linux.org.uk>
> Date: Sat Mar 29 03:08:38 2008 +0000
>
> net/rxrpc trivial annotations
>
> A variable was declared as a 16-bit type rather than a 32-bit type.
ACK with apologies
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] RxRPC: Fix a regression in the RXKAD security module
2008-04-24 19:38 [PATCH] RxRPC: Fix a regression in the RXKAD security module David Howells
2008-04-24 20:21 ` Al Viro
@ 2008-04-24 20:45 ` Linus Torvalds
1 sibling, 0 replies; 3+ messages in thread
From: Linus Torvalds @ 2008-04-24 20:45 UTC (permalink / raw)
To: David Howells; +Cc: akpm, viro, linux-kernel
On Thu, 24 Apr 2008, David Howells wrote:
>
> Fix a regression in the RXKAD security module introduced in:
>
> commit 91e916cffec7c0153c5cbaa447151862a7a9a047
> Author: Al Viro <viro@ftp.linux.org.uk>
> Date: Sat Mar 29 03:08:38 2008 +0000
>
> net/rxrpc trivial annotations
>
> A variable was declared as a 16-bit type rather than a 32-bit type.
Ok, that looks stupid, and should even have had a warning (shifting a u16
right by 16 should warn about it being pointless, but doesn't, because the
compiler quietly expands it to "int" in the meantime).
Hmm. I could do something to sparse that warns about that too.
Linus
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-24 20:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-24 19:38 [PATCH] RxRPC: Fix a regression in the RXKAD security module David Howells
2008-04-24 20:21 ` Al Viro
2008-04-24 20:45 ` Linus Torvalds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®