mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
virt: haven: rsc_mgr: Allocate right buffer size of requests
The correct size for sending RM messages is HH_MSGQ_MAX_MSG_SIZE_BYTES. The amount of actual payload data is HH_RM_MAX_MSG_SIZE_BYTES and is incorrect. Change-Id: I8aa7de79ab57b60da366c0a4a1f82233d22ab59c Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
This commit is contained in:
parent
f3351f4a4a
commit
ad123452d0
1 changed files with 2 additions and 2 deletions
|
|
@ -525,7 +525,7 @@ static int hh_rm_send_request(u32 message_id,
|
|||
return -E2BIG;
|
||||
}
|
||||
|
||||
msg = kzalloc(HH_RM_MAX_MSG_SIZE_BYTES, GFP_KERNEL);
|
||||
msg = kzalloc(HH_MSGQ_MAX_MSG_SIZE_BYTES, GFP_KERNEL);
|
||||
if (!msg)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
@ -542,7 +542,7 @@ static int hh_rm_send_request(u32 message_id,
|
|||
payload_size = buff_size_remaining;
|
||||
}
|
||||
|
||||
memset(msg, 0, HH_RM_MAX_MSG_SIZE_BYTES);
|
||||
memset(msg, 0, HH_MSGQ_MAX_MSG_SIZE_BYTES);
|
||||
/* Fill header */
|
||||
hdr = msg;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue