diff options
author | Keith Busch <keith.busch@intel.com> | 2014-08-27 13:55:39 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-11-04 13:17:09 -0700 |
commit | 695a4fe79ffa70023238b6b2d4c20fe1a05288fb (patch) | |
tree | c4fd6fffb45ba42442ecc7bad1113972d422b4c0 /samples | |
parent | e179729a821c1b82375f5593533c027462e753b7 (diff) | |
download | linux-695a4fe79ffa70023238b6b2d4c20fe1a05288fb.tar.gz linux-695a4fe79ffa70023238b6b2d4c20fe1a05288fb.tar.bz2 linux-695a4fe79ffa70023238b6b2d4c20fe1a05288fb.zip |
NVMe: Fix SG_IO status values
We've only been setting the sg_io_hdr status values on SCSI commands
that require an nvme command to complete the translation. The fields
in the struct are output parameters, so we have to set them, otherwise
user space will see whatever was in memory from before. In the case of
compat SG_IO, this would reveal kernel memory. This fixes the issue by
initializing the sg_io_hdr with successful status.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Acked-by: Vishal Verma <vishal.l.verma@linux.intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions