Commit 2aa98197 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by Pu Lehui
Browse files

rt2800: do not nullify initialization vector data

mainline inclusion
from mainline-v5.3-rc1
commit 710e6cc1
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I96GO9
CVE: CVE-2023-52595

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=710e6cc1595e



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

If we restart hw we should keep existing IV (initialization vector)
otherwise HW encryption will be broken after restart.

Also fix some coding style issues on the way.

Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Signed-off-by: default avatarPu Lehui <pulehui@huawei.com>
parent fe60ff2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment