lpfc: fix low priority issues from fortify source code scan
Fixed Low priority issues from lpfc given by fortify source code scan. Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:

committed by
Christoph Hellwig

parent
a2fc4aefa0
commit
eb01656688
@@ -269,7 +269,7 @@ static int
|
||||
lpfc_debugfs_hbqinfo_data(struct lpfc_hba *phba, char *buf, int size)
|
||||
{
|
||||
int len = 0;
|
||||
int cnt, i, j, found, posted, low;
|
||||
int i, j, found, posted, low;
|
||||
uint32_t phys, raw_index, getidx;
|
||||
struct lpfc_hbq_init *hip;
|
||||
struct hbq_s *hbqs;
|
||||
@@ -279,7 +279,7 @@ lpfc_debugfs_hbqinfo_data(struct lpfc_hba *phba, char *buf, int size)
|
||||
|
||||
if (phba->sli_rev != 3)
|
||||
return 0;
|
||||
cnt = LPFC_HBQINFO_SIZE;
|
||||
|
||||
spin_lock_irq(&phba->hbalock);
|
||||
|
||||
/* toggle between multiple hbqs, if any */
|
||||
|
Reference in New Issue
Block a user