mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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/[email protected] Fixes: 3c58f737231e ("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]> Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
2fb431e69a
commit
9899e57bd7
1 changed files with 1 additions and 1 deletions
|
|
@ -669,7 +669,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue