mtip32xx: fix dereference of stack garbage
authorJens Axboe <axboe@fb.com>
Fri, 21 Apr 2017 14:46:44 +0000 (08:46 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 21 Apr 2017 14:46:44 +0000 (08:46 -0600)
commit95c55ff425faa190fd8ba55090fbdf33d8b2f0ae
treeed110696e538cbe27f2e589f44fb7adf9f9ca35c
parent99c749a4c4f4ea2c9eee01f81f79bdbf26c3914e
mtip32xx: fix dereference of stack garbage

We need to get the command payload from the request before
we attempt to dereference it.

Fixes: 4dda4735c581 ("mtip32xx: add a status field to struct mtip_cmd")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c