Commit 9b761574 authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller

ionic: fix unchecked reference

We can get to the counter without going through the pointer
that the robot complained about.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2103ed2f
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment