lkml.org 
[lkml]   [2006]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch] Array overrun in drivers/infiniband/core/cma.c
Eric Sesterhenn wrote:
> this was spotted by coverity #id 1300. Since
> the array has only four elements, we should
> just use those four.
>
> Patch is against todays git tree.
>
> Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

Acked-by: Sean Hefty <sean.hefty@intel.com>

please apply Eric's patch below

> --- linux-2.6/drivers/infiniband/core/cma.c.orig 2006-06-21 20:54:10.000000000 +0200
> +++ linux-2.6/drivers/infiniband/core/cma.c 2006-06-21 20:54:22.000000000 +0200
> @@ -476,7 +476,7 @@ static inline int cma_zero_addr(struct s
> 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;
> }
> }
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-26 20:27    [W:0.178 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site