mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
RDMA/bnxt_re: Delete always true SGID table check
The "sgid_tbl" inside "rdev->qplib_res" is a static memory. Hence, the check always return true. Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Link: https://patch.msgid.link/20250814112555.221665-9-kalesh-anakkur.purayil@broadcom.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
dc61e916f1
commit
4a9fba4d00
|
|
@ -375,7 +375,7 @@ int bnxt_re_del_gid(const struct ib_gid_attr *attr, void **context)
|
|||
if (!ctx)
|
||||
return -EINVAL;
|
||||
|
||||
if (sgid_tbl && sgid_tbl->active) {
|
||||
if (sgid_tbl->active) {
|
||||
if (ctx->idx >= sgid_tbl->max)
|
||||
return -EINVAL;
|
||||
gid_to_del = &sgid_tbl->tbl[ctx->idx].gid;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user