net: hns3: modify handling of out of memory in hclge_err.c
authorWeihang Li <liweihang@hisilicon.com>
Thu, 20 Jun 2019 08:52:40 +0000 (16:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jun 2019 15:59:02 +0000 (11:59 -0400)
commitb4b9bd92fe3f1ad147f3fe753b4fe4d7726ec741
tree821fb3430b0fba21c6a7a3a20c9b913635375fe7
parent2253db16f8ec5710eccb540ac833995a6d1d7e19
net: hns3: modify handling of out of memory in hclge_err.c

Users should be informed if HNS driver failed to allocate memory for
descriptor when handling hw errors. This patch solve above issues.

Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c