mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
scsi: target: tcmu: Fix warning: 'page' may be used uninitialized
[ Upstream commit61741d8699] 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@oracle.com Fixes:3c58f73723("scsi: target: tcmu: Optimize use of flush_dcache_page") Cc: Mike Christie <michael.christie@oracle.com> Acked-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: John Donnelly <john.p.donnelly@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d9796b5e2a
commit
052daa607a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user