summaryrefslogtreecommitdiff
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorSang-Hoon Choi <csh0052@gmail.com>2026-10-02 19:47:40 +0000
committerJakub Kicinski <kuba@kernel.org>2026-10-05 17:01:58 -0700
commita089139eb47bf80d13cc394f59a96b868d88c09e (patch)
tree6a9af523ae19f44efea87eb36fd52f075bb3edc9 /include/linux/errqueue.h
parent095dc989f0025f2d37aee54329224f4ee6ab8bfe (diff)
mlxsw: spectrum_router: destroy FIB hash table on bind failure
mlxsw_sp_fib_create() initializes fib->ht before binding the LPM tree. If the bind fails, the error path releases the tree and frees fib without destroying the initialized hash table, leaking its bucket allocation. Destroy fib->ht on the post-initialization failure path. Cc: stable+noautosel@kernel.org # untested fix to unlikely driver error path Fixes: 2b52ce02e1d1 ("mlxsw: spectrum_router: Remove unnecessary prefix lengths from LPM tree") Reported-by: Changyul Lee <lcy8047@gmail.com> Signed-off-by: Sang-Hoon Choi <csh0052@gmail.com> Reviewed-by: Ivan Vecera <ivecera@redhat.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20261003.final104.6f67a6ed1c4476b7@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions