]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: change nvme_passthru_cmd64 to explicitly mark rsvd
authorCharles Machalow <csm10495@gmail.com>
Tue, 5 Nov 2019 06:15:10 +0000 (22:15 -0800)
committerKeith Busch <kbusch@kernel.org>
Tue, 5 Nov 2019 21:17:38 +0000 (06:17 +0900)
commit93b40783943ac9e754cc50e379fd0f04082a5f60
tree7bde402c5afaf6de7dbc78c9672f379f75ff950a
parent0162b3cdf234a1d7710d66dd1c8c7a24129d9c90
nvme: change nvme_passthru_cmd64 to explicitly mark rsvd

Changing nvme_passthru_cmd64 to add a field: rsvd2. This field is an explicit
marker for the padding space added on certain platforms as a result of the
enlargement of the result field from 32 bit to 64 bits in size, and
fixes differences in struct size when using compat ioctl for 32-bit
binaries on 64-bit architecture.

Fixes: 659e3480c142 ("nvme: allow 64-bit results in passthru commands")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Charles Machalow <csm10495@gmail.com>
[changelog]
Signed-off-by: Keith Busch <kbusch@kernel.org>
include/uapi/linux/nvme_ioctl.h