Commit b0c14887 authored by Haibin Lu's avatar Haibin Lu Committed by Jie Liu
Browse files

UNIC: The driver loading process is terminated when the guid fails to be obtained.

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8GIXF


CVE: NA

-----------------------------------------------------------

If the guid fails to be obtained during driver loading,
the firmware is faulty. In this case, stop the driver
loading process.

This patch changes the return values of hns3_unic_init()
and hns3_unic_init_guid() from void to int. When
hns3_unic_init_guid() fails to be executed, The driver
terminates its initialization process and releases the
previously applied resources.

Signed-off-by: default avatarHaibin Lu <luhaibin10@hisilicon.com>
parent 9ad63641
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment