[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090720134736.605f86d1@lxorguk.ukuu.org.uk>
Date: Mon, 20 Jul 2009 13:47:36 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Adrian Hunter <adrian.hunter@...ia.com>
Cc: arun c <arun.edarath@...il.com>, Julia Lawall <julia@...u.dk>,
"Lavinen Jarkko (Nokia-D/Helsinki)" <jarkko.lavinen@...ia.com>,
"linux-omap@...r.kernel.org" <linux-omap@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>
Subject: Re: [PATCH 9/10] drivers/mmc: Move a dereference below a NULL test
> It is not a "NULL check" it is an assertion, which can be compiled out.
> On some platforms BUG is implemented as a null dereference anyway
> e.g. on ARM it is *(int *)0 = 0;
It's a bogus check because the
struct mmc_omap_host *host = slot->host;
has already been executed before you check for slot == NULL
--
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