Loading
crypto: ccp: Get api version again when update Hygon CSV firmware at runtime
hygon inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBGDLQ CVE: NA --------------------------- The commit 582fab52 ("crypto: ccp: Implement CSV_DOWNLOAD_FIRMWARE ioctl command") support update Hygon CSV firmware at runtime, but it don't update API version info in the driver after issues the DOWNLOAD_FIRMWARE command. When we want use the new features in the updated firmware, the version check in this driver will fail. To address this problem, we should regain the api version when DOWNLOAD_FIRMWARE command returns. Fixes: 582fab52 ("crypto: ccp: Implement CSV_DOWNLOAD_FIRMWARE ioctl command") Signed-off-by:hanliyang <hanliyang@hygon.cn>