diff options
| author | Haiyue Wang <[email protected]> | 2021-07-14 07:34:59 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-07-16 17:41:40 +0000 |
| commit | 63a9192b8fa1ea55efeba1f18fad52bb24d9bf12 (patch) | |
| tree | 0849a5715854aab35372c862d35b002631bb4b38 /drivers/net/ethernet/intel/igc | |
| parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next (diff) | |
| download | kernel-63a9192b8fa1ea55efeba1f18fad52bb24d9bf12.tar.gz kernel-63a9192b8fa1ea55efeba1f18fad52bb24d9bf12.zip | |
gve: fix the wrong AdminQ buffer overflow check
The 'tail' pointer is also free-running count, so it needs to be masked
as 'adminq_prod_cnt' does, to become an index value of AdminQ buffer.
Fixes: 5cdad90de62c ("gve: Batch AQ commands for creating and destroying queues.")
Signed-off-by: Haiyue Wang <[email protected]>
Reviewed-by: Catherine Sullivan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions
