We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2f4bb2 commit dd8a09cCopy full SHA for dd8a09c
drivers/net/ethernet/aquantia/atlantic/aq_ring.c
@@ -365,6 +365,10 @@ int aq_ring_rx_clean(struct aq_ring_s *self,
365
if (!buff->is_eop) {
366
buff_ = buff;
367
do {
368
+ if (buff_->next >= self->size) {
369
+ err = -EIO;
370
+ goto err_exit;
371
+ }
372
next_ = buff_->next,
373
buff_ = &self->buff_ring[next_];
374
is_rsc_completed =
@@ -388,6 +392,10 @@ int aq_ring_rx_clean(struct aq_ring_s *self,
388
392
(buff->is_lro && buff->is_cso_err)) {
389
393
390
394
395
396
397
398
391
399
400
401
0 commit comments