This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 88e7b37328b drivers/video: zero message on MIPI DSI driver
88e7b37328b is described below
commit 88e7b37328bd6d93a5fda0bd06fccd56f1068c8d
Author: Filipe Cavalcanti <[email protected]>
AuthorDate: Fri Jul 24 15:19:35 2026 -0300
drivers/video: zero message on MIPI DSI driver
Use memset to clear the msg struct before using on
mipi_dsi_dcs_write_buffer.
Signed-off-by: Filipe Cavalcanti <[email protected]>
---
drivers/video/mipidsi/mipi_dsi_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/mipidsi/mipi_dsi_device.c
b/drivers/video/mipidsi/mipi_dsi_device.c
index b80b4b0db12..f343d48dc9a 100644
--- a/drivers/video/mipidsi/mipi_dsi_device.c
+++ b/drivers/video/mipidsi/mipi_dsi_device.c
@@ -422,10 +422,10 @@ ssize_t mipi_dsi_dcs_write_buffer(FAR struct
mipi_dsi_device *device,
{
struct mipi_dsi_msg msg;
+ memset(&msg, 0, sizeof(msg));
msg.channel = device->channel;
msg.tx_buf = data;
msg.tx_len = len;
- msg.flags = 0;
switch (len)
{