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

From: Minchan Kim
Date: Mon Oct 28 2013 - 20:44:16 EST


On Mon, Oct 28, 2013 at 05:53:40PM +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)
>
> Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx>
Acked-by: Minchan Kim <minchan@xxxxxxxxxx>

--
Kind regards,
Minchan Kim
--
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/