]> git.baikalelectronics.ru Git - kernel.git/commit
libata: don't call ata_scsi_rbuf_fill for command without a response buffer
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Jan 2017 08:41:47 +0000 (09:41 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 10 Jan 2017 15:55:40 +0000 (10:55 -0500)
commita169ee7c37a649985f30dfff825af7e2126f63e1
tree13bab0cc7468c127fda1521deb41f48eda2538b4
parente35cb276b5fc175ffbb8f7bf9b1b7ce59fad8918
libata: don't call ata_scsi_rbuf_fill for command without a response buffer

No need to copy a zeroed buffer to the caller if the command is defined
to not have a response in the SCSI spec.

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