This is a note to let you know that I've just added the patch titled

    sd: Fix missing ATO tag check

to the 4.0-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     sd-fix-missing-ato-tag-check.patch
and it can be found in the queue-4.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From e557990e358934fb168d30371c9c0f63e314c6b8 Mon Sep 17 00:00:00 2001
From: "Martin K. Petersen" <[email protected]>
Date: Tue, 14 Apr 2015 17:11:03 -0400
Subject: sd: Fix missing ATO tag check

From: "Martin K. Petersen" <[email protected]>

commit e557990e358934fb168d30371c9c0f63e314c6b8 upstream.

3aec2f41a8bae introduced a merge error where we would end up check for
sdkp instead of sdkp->ATO. Fix this so we register app tag capability
correctly.

Signed-off-by: Martin K. Petersen <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/scsi/sd_dif.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/scsi/sd_dif.c
+++ b/drivers/scsi/sd_dif.c
@@ -77,7 +77,7 @@ void sd_dif_config_host(struct scsi_disk
 
                disk->integrity->flags |= BLK_INTEGRITY_DEVICE_CAPABLE;
 
-               if (!sdkp)
+               if (!sdkp->ATO)
                        return;
 
                if (type == SD_DIF_TYPE3_PROTECTION)


Patches currently in stable-queue which might be from 
[email protected] are

queue-4.0/target-file-fix-bug-when-config_debug_sg-y-and-dif-protection-enabled.patch
queue-4.0/target-file-fix-unmap-with-dif-protection-support.patch
queue-4.0/sd-unregister-integrity-profile.patch
queue-4.0/target-file-fix-sg-table-for-prot_buf-initialization.patch
queue-4.0/sd-fix-missing-ato-tag-check.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to