diff options
| author | Jeroen de Borst <[email protected]> | 2019-11-26 23:36:19 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-11-26 23:52:34 +0000 |
| commit | a95069ecb7092d03b2ea1c39ee04514fe9627540 (patch) | |
| tree | 8af5f4a1bced8d7be348dc9c70ddd127ce3a67c1 /net/tipc/node.c | |
| parent | net: inet_is_local_reserved_port() port arg should be unsigned short (diff) | |
| download | kernel-a95069ecb7092d03b2ea1c39ee04514fe9627540.tar.gz kernel-a95069ecb7092d03b2ea1c39ee04514fe9627540.zip | |
gve: Fix the queue page list allocated pages count
In gve_alloc_queue_page_list(), when a page allocation fails,
qpl->num_entries will be wrong. In this case priv->num_registered_pages
can underflow in gve_free_queue_page_list(), causing subsequent calls
to gve_alloc_queue_page_list() to fail.
Fixes: f5cedc84a30d ("gve: Add transmit and receive support")
Signed-off-by: Jeroen de Borst <[email protected]>
Reviewed-by: Catherine Sullivan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
