Re: [PATCH v4 1/2] Staging: zram: Fix variable dereferenced before check

2013-10-27 Thread Minchan Kim
Hello Rashika, On Fri, Oct 25, 2013 at 7:10 PM, Minchan Kim wrote: > Hello Rashika, > > First of all, thanks for looking this! > > On Tue, Oct 22, 2013 at 07:00:57PM +0530, Rashika Kheria wrote: >> This patch fixes the following Smatch warning in zram_drv.c- >> drivers/staging/zram/zram_drv.c:66

Re: [PATCH v4 1/2] Staging: zram: Fix variable dereferenced before check

2013-10-25 Thread Minchan Kim
Hello Rashika, First of all, thanks for looking this! On Tue, Oct 22, 2013 at 07:00:57PM +0530, Rashika Kheria wrote: > This patch fixes the following Smatch warning in zram_drv.c- > drivers/staging/zram/zram_drv.c:663 > reset_store() warn: variable dereferenced before check 'bdev' (see line 652)

[PATCH v4 1/2] Staging: zram: Fix variable dereferenced before check

2013-10-22 Thread Rashika Kheria
This patch fixes the following Smatch warning in zram_drv.c- drivers/staging/zram/zram_drv.c:663 reset_store() warn: variable dereferenced before check 'bdev' (see line 652) drivers/staging/zram/zram_drv.c:899 destroy_device() warn: variable dereferenced before check 'zram->disk' (see line 896) S