summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra210
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/nvidia/tegra210')
-rw-r--r--src/soc/nvidia/tegra210/dsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/nvidia/tegra210/dsi.c b/src/soc/nvidia/tegra210/dsi.c
index ae20d44d16..a383ff208c 100644
--- a/src/soc/nvidia/tegra210/dsi.c
+++ b/src/soc/nvidia/tegra210/dsi.c
@@ -769,7 +769,7 @@ static ssize_t tegra_dsi_host_transfer(struct mipi_dsi_host *host,
tegra_dsi_writel(dsi, value, DSI_WR_DATA);
/* write payload (if any) */
- if (msg->tx_len > 2) {
+ if (tx && msg->tx_len > 2) {
for (j = 2; j < msg->tx_len; j += 4) {
value = 0;