Skip to content

Commit

Permalink
ionic: fix unchecked reference
Browse files Browse the repository at this point in the history
We can get to the counter without going through the pointer
that the robot complained about.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Shannon Nelson authored and David S. Miller committed Mar 19, 2021
1 parent 2103ed2 commit 9b76157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/pensando/ionic/ionic_lif.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ static int ionic_adminq_napi(struct napi_struct *napi, int budget)
work_done = max(n_work, a_work);
if (work_done < budget && napi_complete_done(napi, work_done)) {
flags |= IONIC_INTR_CRED_UNMASK;
lif->adminqcq->cq.bound_intr->rearm_count++;
intr->rearm_count++;
}

if (work_done || flags) {
Expand Down

0 comments on commit 9b76157

Please sign in to comment.