]> git.baikalelectronics.ru Git - kernel.git/commit
libata-scsi: Move sense buffers onto stack
authorKees Cook <keescook@chromium.org>
Tue, 31 Jul 2018 19:51:53 +0000 (12:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Aug 2018 21:22:41 +0000 (15:22 -0600)
commit6c42a9a03897b89934cb336c2302e4b772a52247
tree1c85d9cb747756c6ca9b182e1695b3fc50a58380
parent3efc316f9d047acf7f7d0e280b33a9ecc0cd1cb0
libata-scsi: Move sense buffers onto stack

To support future compile-time sizeof() checks that will be able to
validate the length of sense buffers, this removes the only dynamically
allocated sense buffers in the tree by putting the 96 byte sense buffers
on the stack.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/libata-scsi.c