lkml.org 
[lkml]   [2006]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [2.6.19 patch] drivers/block/aoe/aoedev.c: fix NULL dereference
On Wed, Nov 01, 2006 at 01:40:25AM +0100, Adrian Bunk wrote:
> This patch fixes a NULL dereference introduced by
> commit e407a7f6cd143b3ab4eb3d7e1cf882e96b710eb5:
>
> This quite unusual error handling through a switch introduces NULL
> dereferences if exactly one of the two k{c,z}alloc's failed.

Hmm. If exactly one of the two fails, then the value of the switch
conditional is 1 (well, certainly not zero). It will jump over the
zero case, and there's a return in the default case, so I'm having
trouble seeing the danger.

What exactly is Coverity saying? That would be interesting to know.

--
Ed L Cashin <ecashin@coraid.com>
-
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-11-01 17:53    [W:0.048 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site