Re: [PATCH 1/2] mtip32xx: fix a smatch warning

2013-04-14 Thread Jens Axboe
On Fri, Apr 12 2013, Asai Thambi S P wrote: > > Reported smatch warning: > drivers/block/mtip32xx/mtip32xx.c:4163 mtip_block_shutdown() warn: variable > dereferenced before check 'dd->disk' (see line 4159) > > dd->disk->disk_name accessed before the check if dd->disk is NULL. Fixed this > and ac

[PATCH 1/2] mtip32xx: fix a smatch warning

2013-04-12 Thread Asai Thambi S P
Reported smatch warning: drivers/block/mtip32xx/mtip32xx.c:4163 mtip_block_shutdown() warn: variable dereferenced before check 'dd->disk' (see line 4159) dd->disk->disk_name accessed before the check if dd->disk is NULL. Fixed this and access of dd->queue/dd->disk->queue. Reported-by: Dan Carpe