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

Jens Axboe
2013-04-14T08:26:21Z

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 access of dd->queue/dd->disk->queue.

Applied for 3.10, thanks.

--
Jens Axboe