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:
Elliot Berman 2022-08-11 11:41:02 -07:00 • committed by Hrishabh Rajput
commit ad123452d0

View file

@ -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;