Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 7116861

Browse files
yang-kaixbuildslave
authored andcommitted
Fix virtio rpmb R/W issue when accessing multi-block
Change-Id: If14c0dcb80e617e18298929421812ce1a4e4c1c0 Tracked-On: OAM-70355 Signed-off-by: Yang, KaiX <[email protected]> Reviewed-on: 649224
1 parent 274e7ae commit 7116861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/virtual_media/VirtioRpmb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,15 @@ VirtioRpmbAddVirtqueue(
209209
VirtioAppendDesc(
210210
&Dev->Ring,
211211
RpmbFrameDeviceAddress[i],
212-
sizeof(RPMB_DATA_FRAME),
212+
sizeof(RPMB_DATA_FRAME) * (SeqCmdData->cmds[i].n_rpmb_frame ? : 1),
213213
VRING_DESC_F_NEXT,
214214
&Indices
215215
);
216216
else
217217
VirtioAppendDesc(
218218
&Dev->Ring,
219219
RpmbFrameDeviceAddress[i],
220-
sizeof(RPMB_DATA_FRAME),
220+
sizeof(RPMB_DATA_FRAME) * (SeqCmdData->cmds[i].n_rpmb_frame ? : 1),
221221
VRING_DESC_F_WRITE,
222222
&Indices
223223
);

0 commit comments

Comments
 (0)