mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 15:14:18 +08:00
net/mlx5: Fix order of functions in mlx5_irq_detach_nb()
Change order of functions in mlx5_irq_detach_nb() so it will be
a mirror of mlx5_irq_attach_nb.
Fixes: 71e084e264
("net/mlx5: Allocating a pool of MSI-X vectors for SFs")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
c85a6b8feb
commit
3c8946e0e2
@ -251,8 +251,11 @@ int mlx5_irq_attach_nb(struct mlx5_irq *irq, struct notifier_block *nb)
|
||||
|
||||
int mlx5_irq_detach_nb(struct mlx5_irq *irq, struct notifier_block *nb)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
err = atomic_notifier_chain_unregister(&irq->nh, nb);
|
||||
irq_put(irq);
|
||||
return atomic_notifier_chain_unregister(&irq->nh, nb);
|
||||
return err;
|
||||
}
|
||||
|
||||
struct cpumask *mlx5_irq_get_affinity_mask(struct mlx5_irq *irq)
|
||||
|
Loading…
Reference in New Issue
Block a user