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

From: Jens Axboe
Date: Sun Apr 14 2013 - 04:26:29 EST


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

--
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/