diff options
author | Haiyue Wang <haiyue.wang@intel.com> | 2021-07-14 10:34:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-16 20:41:40 +0300 |
commit | 63a9192b8fa1ea55efeba1f18fad52bb24d9bf12 (patch) | |
tree | 0849a5715854aab35372c862d35b002631bb4b38 /net/core/rtnetlink.c | |
parent | 82a1ffe57ec6455658584459de56ee4b401c1dfb (diff) | |
download | linux-63a9192b8fa1ea55efeba1f18fad52bb24d9bf12.tar.xz |
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 <haiyue.wang@intel.com>
Reviewed-by: Catherine Sullivan <csully@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
0 files changed, 0 insertions, 0 deletions