projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09c0dc6
)
[PATCH] Array overrun in drivers/infiniband/core/cma.c
author
Eric Sesterhenn
<snakebyte@gmx.de>
Wed, 21 Jun 2006 18:56:26 +0000
(20:56 +0200)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 26 Jun 2006 18:57:28 +0000
(11:57 -0700)
This was spotted by coverity #id 1300. Since the array has only four
elements, we should just use those four.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/core/cma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/core/cma.c
b/drivers/infiniband/core/cma.c
index a76834edf608be8258b239d83cfeedda6295067c..863f64befc7c5d5703fc8fc06adf9001642b660d 100644
(file)
--- a/
drivers/infiniband/core/cma.c
+++ b/
drivers/infiniband/core/cma.c
@@
-476,7
+476,7
@@
static inline int cma_zero_addr(struct sockaddr *addr)
else {
ip6 = &((struct sockaddr_in6 *) addr)->sin6_addr;
return (ip6->s6_addr32[0] | ip6->s6_addr32[1] |
- ip6->s6_addr32[
3] | ip6->s6_addr32[4
]) == 0;
+ ip6->s6_addr32[
2] | ip6->s6_addr32[3
]) == 0;
}
}