Re: [PATCH v2] Staging: zram: Fix variable dereferenced before check

2013-10-21 Thread Minchan Kim
On Sat, Oct 19, 2013 at 01:59:05PM -0700, Greg KH wrote: > On Sat, Oct 19, 2013 at 10:01:42PM +0530, Rashika Kheria wrote: > > This patch fixes the following Smatch warning in zram_drv.c- > > ~/git/kernels/linux/drivers/staging/zram/zram_drv.c:663 > > reset_store() warn: variable dereferenced befor

Re: [OPW kernel] Re: [PATCH v2] Staging: zram: Fix variable dereferenced before check

2013-10-20 Thread Greg KH
On Sun, Oct 20, 2013 at 01:33:39PM +0100, Josh Triplett wrote: > On Sat, Oct 19, 2013 at 01:59:05PM -0700, Greg KH wrote: > > On Sat, Oct 19, 2013 at 10:01:42PM +0530, Rashika Kheria wrote: > > > This patch fixes the following Smatch warning in zram_drv.c- > > > ~/git/kernels/linux/drivers/staging/

Re: [OPW kernel] Re: [PATCH v2] Staging: zram: Fix variable dereferenced before check

2013-10-20 Thread Josh Triplett
On Sat, Oct 19, 2013 at 01:59:05PM -0700, Greg KH wrote: > On Sat, Oct 19, 2013 at 10:01:42PM +0530, Rashika Kheria wrote: > > This patch fixes the following Smatch warning in zram_drv.c- > > ~/git/kernels/linux/drivers/staging/zram/zram_drv.c:663 > > reset_store() warn: variable dereferenced befor

Re: [PATCH v2] Staging: zram: Fix variable dereferenced before check

2013-10-19 Thread Greg KH
On Sat, Oct 19, 2013 at 10:01:42PM +0530, Rashika Kheria wrote: > This patch fixes the following Smatch warning in zram_drv.c- > ~/git/kernels/linux/drivers/staging/zram/zram_drv.c:663 > reset_store() warn: variable dereferenced before check 'bdev' (see line 652) > ~/git/kernels/linux/drivers/stagi