]> git.baikalelectronics.ru Git - kernel.git/commit
libata: avoid global response buffer in atapi_qc_complete
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Jan 2017 08:41:43 +0000 (09:41 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 10 Jan 2017 15:55:38 +0000 (10:55 -0500)
commit7ca25291abb3039bff137f074f5ef425e1e17d66
tree1c193773476d8d410c8caca5ee239562074661ad
parent32d5c5b64daf4c5859e799f27f83e9c7e43579a1
libata: avoid global response buffer in atapi_qc_complete

We only need to look at 4 bytes of the inquiry response for ATAPI
devices.  Instead of using the global ata_scsi_rbuf just use a
a stack buffer.  Also factor the fixup into it's own little helper
function to make it more readable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-scsi.c