]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: FWTrace, cancel work on alloc pd error flow
authorSaeed Mahameed <saeedm@nvidia.com>
Wed, 18 Aug 2021 20:09:26 +0000 (13:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:26:41 +0000 (12:26 +0200)
commit20b7fc7f8374dd192290bd73f841970f0429f799
treeaa46adb987350491d26c18121d624983771675c0
parentb5edb1c95ee60c418da499a61a8b515196c9f739
net/mlx5: FWTrace, cancel work on alloc pd error flow

commit dfe6fd72b5f1878b16aa2c8603e031bbcd66b96d upstream.

Handle error flow on mlx5_core_alloc_pd() failure,
read_fw_strings_work must be canceled.

Fixes: 3649e5094c74 ("net/mlx5: FW tracer, events handling")
Reported-by: Pavel Machek (CIP) <pavel@denx.de>
Suggested-by: Pavel Machek (CIP) <pavel@denx.de>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Aya Levin <ayal@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c