From: Tariq Toukan <tar...@mellanox.com>
Date: Tue, 20 Sep 2016 14:55:31 +0300
> From: Kamal Heib <kam...@mellanox.com>
> This patch cleans devlink resources by calling devlink_port_unregister()
> to avoid the following issues:
> - Kernel panic when triggering reset flow.
> - Memory leak due to unfreed resources in mlx4_init_port_info().
> Fixes: 09d4d087cd48 ("mlx4: Implement devlink interface")
> Signed-off-by: Kamal Heib <kam...@mellanox.com>
> Signed-off-by: Tariq Toukan <tar...@mellanox.com>
> Please push it to -stable >= 4.6 as well. Thanks.
Applied and queued up for -stable, thanks.