提交 3fbc9bb6 编写于 作者: S Shannon Nelson 提交者: David S. Miller

ionic: update eid test for overflow

Fix up our comparison to better handle a potential (but largely
unlikely) wrap around.
Signed-off-by: NShannon Nelson <snelson@pensando.io>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4471b1c1
......@@ -719,7 +719,7 @@ static bool ionic_notifyq_service(struct ionic_cq *cq,
eid = le64_to_cpu(comp->event.eid);
/* Have we run out of new completions to process? */
if (eid <= lif->last_eid)
if ((s64)(eid - lif->last_eid) <= 0)
return false;
lif->last_eid = eid;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册