Re: [PATCH] UBI: block: fix dereference on uninitialized dev

2014-08-19 Thread Ezequiel Garcia
Hi Colin, Thanks for the fix. On 16 Aug 05:49 PM, Colin King wrote: > From: Colin Ian King > > 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. Remove the reference

[PATCH] UBI: block: fix dereference on uninitialized dev

2014-08-16 Thread Colin King
From: Colin Ian King 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. Remove the reference to the dev's disk_name. Found by cppcheck: [drivers/mtd/ubi/block.c:509]: (er