vse: copy error code from SE Server

error code from SE Server is not being copied
for Keyslot Allocate/Release case, which results
in success being returned even when keyslot operation
has failed.

Bug 5225204

Change-Id: Ib2ef5c64c2e84c70c01dc6922ef636b87cd081d9
Signed-off-by: Nagaraj P N <nagarajp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3357970
(cherry picked from commit 82d81ec68217c516636f9b072373b924bfae376e)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3361711
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Leo Chiu <lchiu@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Nagaraj P N
2025-05-06 18:19:21 +05:30
committed by Jon Hunter
parent 2f4f0d54a1
commit 60a05995c2

View File

@@ -841,6 +841,7 @@ static int read_and_validate_valid_msg(
}
break;
case VIRTUAL_SE_KEY_SLOT:
priv->rx_status = ivc_msg->rx[0].status;
ivc_rx = &ivc_msg->rx[0];
priv->slot_num = ivc_rx->keyslot;
break;