Re: [Patch net] net: hns3: bugfix for not checking return value
From: David Miller
Date: Thu Nov 08 2018 - 19:24:13 EST
From: Huazhong Tan <tanhuazhong@xxxxxxxxxx>
Date: Thu, 8 Nov 2018 10:13:19 +0800
> hns3_reset_notify_init_enet() only return error early if the return
> value of hns3_restore_vlan() is not 0.
>
> This patch adds checking for the return value of hns3_restore_vlan.
>
> Fixes: 7fa6be4fd2f6 ("net: hns3: fix incorrect return value/type of some functions")
> Signed-off-by: Huazhong Tan <tanhuazhong@xxxxxxxxxx>
Applied, thank you.