Merge "trusty:storageproxyd: Fix in_cdb.length setting on send_ufs_rpmb_req" am: 55e8954950 am: f20e589c00

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1334266

Change-Id: I1e3b4fe083d2670b1f31f331e540ee61cd64f2a1
This commit is contained in:
Wenhao Wang 2020-06-13 01:57:12 +00:00 committed by Automerger Merge Worker
commit 8124ee9930

View file

@ -231,7 +231,7 @@ static int send_ufs_rpmb_req(int sg_fd, const struct storage_rpmb_send_req* req)
if (req->read_size) {
/* Prepare SECURITY PROTOCOL IN command. */
out_cdb.length = __builtin_bswap32(req->read_size);
in_cdb.length = __builtin_bswap32(req->read_size);
sg_io_hdr_t io_hdr;
set_sg_io_hdr(&io_hdr, SG_DXFER_FROM_DEV, sizeof(in_cdb), sizeof(sense_buffer),
req->read_size, read_buf, (unsigned char*)&in_cdb, sense_buffer);