From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [Patch net] net: hns3: bugfix for not checking return value Date: Thu, 08 Nov 2018 16:24:09 -0800 (PST) Message-ID: <20181108.162409.271877198178704379.davem@davemloft.net> References: <1541643199-57792-1-git-send-email-tanhuazhong@huawei.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, salil.mehta@huawei.com, yisen.zhuang@huawei.com, linuxarm@huawei.com To: tanhuazhong@huawei.com Return-path: In-Reply-To: <1541643199-57792-1-git-send-email-tanhuazhong@huawei.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Huazhong Tan 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 Applied, thank you.