diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-06-21 14:56:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 14:57:28 -0400 |
commit | 5fd571cbc13db113bda26c20673e1ec54bfd26b4 (patch) | |
tree | 9201d13d9cabe8e06497fe22f2d0243f0f054f90 /drivers/infiniband | |
parent | 09c0dc68625c06f5b1e786aad0d5369b592179e6 (diff) |
[PATCH] Array overrun in drivers/infiniband/core/cma.c
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/cma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index a76834edf608..863f64befc7c 100644 --- 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) | |||
476 | else { | 476 | else { |
477 | ip6 = &((struct sockaddr_in6 *) addr)->sin6_addr; | 477 | ip6 = &((struct sockaddr_in6 *) addr)->sin6_addr; |
478 | return (ip6->s6_addr32[0] | ip6->s6_addr32[1] | | 478 | return (ip6->s6_addr32[0] | ip6->s6_addr32[1] | |
479 | ip6->s6_addr32[3] | ip6->s6_addr32[4]) == 0; | 479 | ip6->s6_addr32[2] | ip6->s6_addr32[3]) == 0; |
480 | } | 480 | } |
481 | } | 481 | } |
482 | 482 | ||