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 6c25449 commit 5f50153Copy full SHA for 5f50153
drivers/net/ethernet/aquantia/atlantic/aq_ring.c
@@ -366,6 +366,10 @@ int aq_ring_rx_clean(struct aq_ring_s *self,
366
if (!buff->is_eop) {
367
buff_ = buff;
368
do {
369
+ if (buff_->next >= self->size) {
370
+ err = -EIO;
371
+ goto err_exit;
372
+ }
373
next_ = buff_->next,
374
buff_ = &self->buff_ring[next_];
375
is_rsc_completed =
@@ -389,6 +393,10 @@ int aq_ring_rx_clean(struct aq_ring_s *self,
389
393
(buff->is_lro && buff->is_cso_err)) {
390
394
391
395
396
397
398
399
392
400
401
402
0 commit comments