diff options
| author | Dan Carpenter <[email protected]> | 2024-04-24 14:40:43 +0300 |
|---|---|---|
| committer | Sudeep Holla <[email protected]> | 2024-04-24 14:19:45 +0100 |
| commit | ddfade88f49d49b04930ae006ab0974eb547529c (patch) | |
| tree | 1ae5cfb2ec17930cb19e6cd4891d0d57cad09b00 /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | 02c19d84c7c5026624d181b8e4cdc8488134d013 (diff) | |
firmware: arm_ffa: Fix memory corruption in ffa_msg_send2()
The "msg" pointer is a struct and msg->offset is the sizeof(*msg). The
pointer here math means the memcpy() will write outside the bounds.
Cast "msg" to a u8 pointer to fix this.
Fixes: 02c19d84c7c5 ("firmware: arm_ffa: Add support for FFA_MSG_SEND2")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions