Patch "scsi: target: tcmu: Fix warning: 'page' may be used uninitialized" has been added to the 4.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

    scsi: target: tcmu: Fix warning: 'page' may be used uninitialized

to the 4.19-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:
     scsi-target-tcmu-fix-warning-page-may-be-used-uninit.patch
and it can be found in the queue-4.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5fe72ebcf53c124de588af5e38c4a98f9f4c6d80
Author: John Donnelly <john.p.donnelly@xxxxxxxxxx>
Date:   Wed Sep 23 17:19:20 2020 -0700

    scsi: target: tcmu: Fix warning: 'page' may be used uninitialized
    
    [ Upstream commit 61741d8699e1fc764a309ebd20211bb1cb193110 ]
    
    Corrects drivers/target/target_core_user.c:688:6: warning: 'page' may be
    used uninitialized.
    
    Link: https://lore.kernel.org/r/20200924001920.43594-1-john.p.donnelly@xxxxxxxxxx
    Fixes: 3c58f737231e ("scsi: target: tcmu: Optimize use of flush_dcache_page")
    Cc: Mike Christie <michael.christie@xxxxxxxxxx>
    Acked-by: Mike Christie <michael.christie@xxxxxxxxxx>
    Signed-off-by: John Donnelly <john.p.donnelly@xxxxxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
index 99314e5162447..0219b5a865bee 100644
--- a/drivers/target/target_core_user.c
+++ b/drivers/target/target_core_user.c
@@ -680,7 +680,7 @@ static void scatter_data_area(struct tcmu_dev *udev,
 	void *from, *to = NULL;
 	size_t copy_bytes, to_offset, offset;
 	struct scatterlist *sg;
-	struct page *page;
+	struct page *page = NULL;
 
 	for_each_sg(data_sg, sg, data_nents, i) {
 		int sg_remaining = sg->length;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux