diff options
author | Kejian Yan <yankejian@huawei.com> | 2017-04-01 12:03:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-03 14:48:43 -0700 |
commit | a2185587ade79b9649639721aa21c4cefc1aea6b (patch) | |
tree | 36f64dfd763c714186d7e88273d80426d1c4dbba /drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c | |
parent | d592a4a4b9f2727efd8d7718bb5c9ae0d03614bd (diff) |
net: hns: Simplify the exception sequence in hns_ppe_init()
We need to free all ppe submodule if it fails to initialize ppe by
any fault, so this patch will free all ppe resource before
hns_ppe_init() returns exception situation
Reported-by: JinchuanTian <tianjinchuan1@huawei.com>
Signed-off-by: Kejian Yan <yankejian@huawei.com>
Reviewed-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c')
0 files changed, 0 insertions, 0 deletions