mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
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:
committed by
popcornmix
parent
a88ab1ee04
commit
c70007ad3f
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user