staging: vc04_services: Fix vcsm overflow bug when counting transactions

The response block and local state were using u16 and u32 respectively
to represent transaction id.  When the former would wrap, there is a
mismatch and subsequent transactions will be marked as failures.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
This commit is contained in:
Naushir Patuck
2020-01-30 12:35:44 +00:00
committed by popcornmix
parent a88ab1ee04
commit c70007ad3f

View File

@@ -34,7 +34,7 @@ struct sm_cmd_rsp_blk {
/* To be signaled when the response is there */
struct completion cmplt;
u16 id;
u32 id;
u16 length;
u8 msg[VC_SM_MAX_MSG_LEN];