From: Keith Busch Date: Wed, 27 Aug 2014 19:55:39 +0000 (-0600) Subject: NVMe: Fix SG_IO status values X-Git-Tag: omap-for-v3.19/fixes-rc1~94^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=695a4fe79ffa70023238b6b2d4c20fe1a05288fb;p=pandora-kernel.git 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 Acked-by: Vishal Verma Signed-off-by: Matthew Wilcox Signed-off-by: Jens Axboe --- Reading git-diff-tree failed