commit | 5a79e1ac21681907f8cc58e1f78fc40af5bbb890 | [log] [tgz] |
---|---|---|
author | Asai Thambi S P <asamymuthupa@micron.com> | Fri Apr 12 23:57:17 2013 +0530 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Apr 14 10:24:24 2013 +0200 |
tree | cbe99ab653516db10fef76e4aba6dc4fc919102e | |
parent | cef5279735d3f6f0243e626963e6d5c84efade0a [diff] |
mtip32xx: fix a smatch warning 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 Carpenter <dan.carpenter@oracle.com> Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>