[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20091027114048.2f79ca46@lxorguk.ukuu.org.uk>
Date: Tue, 27 Oct 2009 11:40:48 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Julia Lawall <julia@...u.dk>
Cc: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-scsi@...r.kernel.org
Subject: Re: [PATCH 4/14] drivers/message: Move dereference after NULL test
On Sat, 17 Oct 2009 08:34:18 +0200 (CEST)
Julia Lawall <julia@...u.dk> wrote:
> From: Julia Lawall <julia@...u.dk>
>
> If the NULL test on dev->i2o_dev or i2o_dev is needed, then the dereference
> should be after the NULL test.
>
> A simplified version of the semantic match that detects this problem is as
> follows (http://coccinelle.lip6.fr/):
Real bug - actually this needs proper locking but I doubt anyone uses I2O
hardware any. Should go in anyway
> Signed-off-by: Julia Lawall <julia@...u.dk>
Signed-off-by: Alan Cox <alan@...ux.intel.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists