[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070814222203.GA1844@2ka.mipt.ru>
Date: Wed, 15 Aug 2007 02:22:03 +0400
From: Evgeniy Polyakov <johnpol@....mipt.ru>
To: Adrian Bunk <bunk@...nel.org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [2.6 patch] w1_remove_master_device(): fix check-after-use
Hi Adrian.
On Tue, Aug 14, 2007 at 11:22:48PM +0200, Adrian Bunk (bunk@...nel.org) wrote:
> The Coverity checker spotted that we'd have already oops'ed if "dev"
> was NULL.
This is wrong.
Although dev can not be null there there is no way it will crash.
The right paranoidal solution is to setup new pointer and make it equal
to the found device and check if it is NULL or not out of the loop.
I will cook up a patch tomorrow, thanks for pointing to this issue.
--
Evgeniy Polyakov
-
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