[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1410180990.10764.164.camel@sauron.fi.intel.com>
Date: Mon, 08 Sep 2014 15:56:30 +0300
From: Artem Bityutskiy <dedekind1@...il.com>
To: Colin King <colin.king@...onical.com>
Cc: David Woodhouse <dwmw2@...radead.org>,
Brian Norris <computersforpeace@...il.com>,
linux-mtd@...ts.infradead.org, ezequiel.garcia@...e-electrons.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][V2] UBI: block: fix dereference on uninitialized dev
On Wed, 2014-08-20 at 10:19 +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> commit 4df38926f337 ("UBI: block: Avoid disk size integer overflow")
> introduced a dereference on dev (which is not initialized at that
> point) when printing a warning message. Re-order disk_capacity check
> after the dev is found.
>
> Found by cppcheck:
> [drivers/mtd/ubi/block.c:509]: (error) Uninitialized variable: dev
Picked this one, thanks!
--
Best Regards,
Artem Bityutskiy
--
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