]> git.baikalelectronics.ru Git - kernel.git/commit
net: mana: Fix error handling in mana_create_rxq()
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 8 Oct 2021 13:11:31 +0000 (06:11 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Oct 2021 00:00:04 +0000 (17:00 -0700)
commita43b2cb7e5cbceee28dedc127bbf8cbbddba372d
treee9ad4dcf031e819c000efc60f6b48090835f5ede
parent6000cb523524272bef53e4a5005966b4efbe8377
net: mana: Fix error handling in mana_create_rxq()

Fix error handling in mana_create_rxq() when
cq->gdma_id >= gc->max_num_cqs.

Fixes: def7660dad5e ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://lore.kernel.org/r/1633698691-31721-1-git-send-email-haiyangz@microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microsoft/mana/mana_en.c