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:
commit
8124ee9930
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue