commit | a2185587ade79b9649639721aa21c4cefc1aea6b | [log] [tgz] |
---|---|---|
author | Kejian Yan <yankejian@huawei.com> | Sat Apr 01 12:03:45 2017 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 03 14:48:43 2017 -0700 |
tree | 36f64dfd763c714186d7e88273d80426d1c4dbba | |
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>