diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-11-01 19:10:56 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-11-03 19:02:02 +0300 |
commit | cf90a4d1b9ff9e09442226bdb18fec45f013db9d (patch) | |
tree | 46f076612bd595f5cfa1d079c4cbb695df3a9b1f /tools/perf/scripts/python/gecko.py | |
parent | 76d3ddff7153cc0bcc14a63798d19f5d0693ea71 (diff) | |
download | linux-cf90a4d1b9ff9e09442226bdb18fec45f013db9d.tar.xz |
RDMA/bnxt_re: Fix some error handling paths in bnxt_re_probe()
If bnxt_re_add_device() fails, 'en_info' still needs to be freed, as
already done in the .remove() function.
The commit in Fixes incorrectly removed this call, certainly because it
was expecting the .remove() function was called anyway. But if the probe
fails, the remove function is not called.
There is no need to call bnxt_re_remove() as it was done before, kfree()
is enough.
Fixes: a5e099e0c464 ("RDMA/bnxt_re: Fix an error path in bnxt_re_add_device")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/9e48ff955ae55fc39a9eb1eb590d374539eab5ba.1730477345.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions