Re: [PATCH v8 3/3] Staging: zram: Fix variable dereferenced beforecheck

From: Greg Kroah-Hartman
Date: Wed Oct 30 2013 - 12:36:25 EST


On Wed, Oct 30, 2013 at 06:43:32PM +0530, Rashika Kheria wrote:
> This patch fixes the following Smatch warning in zram_drv.c-
> drivers/staging/zram/zram_drv.c:899
> destroy_device() warn: variable dereferenced before check 'zram->disk' (see line 896)
>
> Acked-by: Minchan Kim <minchan@xxxxxxxxxx>
> Acked-by: Jerome Marchand <jmarchan@xxxxxxxxxx>
> Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx>
> ---
>
> This revision fixes the following issues of the previous revision-
> Removes Cc to stable@xxxxxxxxxxxxxxx as it is just a Smatch warning fix

Applied, thanks.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/