OpenCloudOS-Kernel/drivers/net/ethernet/google
Haiyue Wang 63a9192b8f 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: 5cdad90de6 ("gve: Batch AQ commands for creating and destroying queues.")
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Reviewed-by: Catherine Sullivan <csully@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-07-16 10:41:40 -07:00
..
gve gve: fix the wrong AdminQ buffer overflow check 2021-07-16 10:41:40 -07:00
Kconfig gve: Add dqo descriptors 2021-06-24 12:47:37 -07:00
Makefile