CC: [email protected]
CC: [email protected]
TO: Daejun Park <[email protected]>
CC: "Martin K. Petersen" <[email protected]>
CC: "Greg Kroah-Hartman" <[email protected]>
CC: Bart Van Assche <[email protected]>
CC: Can Guo <[email protected]>
CC: Bean Huo <[email protected]>
CC: Stanley Chu <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   1d1df41c5a33359a00e919d54eaebfb789711fdc
commit: f02bc9754a6887bf5e286889265d24ce5e3b1952 scsi: ufs: ufshpb: Introduce 
Host Performance Buffer feature
date:   6 months ago
:::::: branch date: 13 hours ago
:::::: commit date: 6 months ago
config: h8300-randconfig-m031-20220118 
(https://download.01.org/0day-ci/archive/20220120/[email protected]/config)
compiler: h8300-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
drivers/scsi/ufs/ufshpb.c:54 ufshpb_init_subregion_tbl() error: potentially 
dereferencing uninitialized 'srgn'.

vim +/srgn +54 drivers/scsi/ufs/ufshpb.c

f02bc9754a6887 Daejun Park 2021-07-12  38  
f02bc9754a6887 Daejun Park 2021-07-12  39  static void 
ufshpb_init_subregion_tbl(struct ufshpb_lu *hpb,
f02bc9754a6887 Daejun Park 2021-07-12  40                                     
struct ufshpb_region *rgn, bool last)
f02bc9754a6887 Daejun Park 2021-07-12  41  {
f02bc9754a6887 Daejun Park 2021-07-12  42       int srgn_idx;
f02bc9754a6887 Daejun Park 2021-07-12  43       struct ufshpb_subregion *srgn;
f02bc9754a6887 Daejun Park 2021-07-12  44  
f02bc9754a6887 Daejun Park 2021-07-12  45       for (srgn_idx = 0; srgn_idx < 
rgn->srgn_cnt; srgn_idx++) {
f02bc9754a6887 Daejun Park 2021-07-12  46               srgn = rgn->srgn_tbl + 
srgn_idx;
f02bc9754a6887 Daejun Park 2021-07-12  47  
f02bc9754a6887 Daejun Park 2021-07-12  48               srgn->rgn_idx = 
rgn->rgn_idx;
f02bc9754a6887 Daejun Park 2021-07-12  49               srgn->srgn_idx = 
srgn_idx;
f02bc9754a6887 Daejun Park 2021-07-12  50               srgn->srgn_state = 
HPB_SRGN_UNUSED;
f02bc9754a6887 Daejun Park 2021-07-12  51       }
f02bc9754a6887 Daejun Park 2021-07-12  52  
f02bc9754a6887 Daejun Park 2021-07-12  53       if (unlikely(last && 
hpb->last_srgn_entries))
f02bc9754a6887 Daejun Park 2021-07-12 @54               srgn->is_last = true;
f02bc9754a6887 Daejun Park 2021-07-12  55  }
f02bc9754a6887 Daejun Park 2021-07-12  56  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to