]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit335e7b6304b666f1da48db1d04c442e36d21e6ec
treeed110696e538cbe27f2e589f44fb7adf9f9ca35c
parentfea94d1bf22bb6af6142807016c007b2e1b88a33
mtip32xx: fix dereference of stack garbage

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

Fixes: fffd5cd42bd5 ("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