Loading
UNIC: Invoke the hns3_unic_set_default_cc in advance
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IATZWZ CVE: NA ----------------------------------------------------------- Because the sw_ctype field is defined in struct ublhdr, you need to accessor set the field in the ubl header through ublhdr* before removing sw_ctype from the memory. Otherwise, out-of-bounds access may occur after sw_ctype is removed. Therefore, the hns3_unic_set_default_cc function is called earlier. Fixes: eb44201e ("ubl: add CONFIG_UBL definition and UBL interface") Signed-off-by:chuan Wu <wuchuan4@huawei.com> Signed-off-by:
jianqiang Li <lijianqiang16@huawei.com>