Skip to content

Commit 61741d8

Browse files
John Donnellymartinkpetersen
John Donnelly
authored andcommitted
scsi: target: tcmu: Fix warning: 'page' may be used uninitialized
Corrects drivers/target/target_core_user.c:688:6: warning: 'page' may be used uninitialized. Link: https://lore.kernel.org/r/[email protected] Fixes: 3c58f73 ("scsi: target: tcmu: Optimize use of flush_dcache_page") Cc: Mike Christie <[email protected]> Acked-by: Mike Christie <[email protected]> Signed-off-by: John Donnelly <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 1dfbed1 commit 61741d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/target/target_core_user.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ static void scatter_data_area(struct tcmu_dev *udev, struct tcmu_cmd *tcmu_cmd,
699699
void *from, *to = NULL;
700700
size_t copy_bytes, offset;
701701
struct scatterlist *sg;
702-
struct page *page;
702+
struct page *page = NULL;
703703

704704
for_each_sg(se_cmd->t_data_sg, sg, se_cmd->t_data_nents, i) {
705705
int sg_remaining = sg->length;

0 commit comments

Comments
 (0)