Skip to content
Commit 9f0ca750 authored by Tony Han's avatar Tony Han Committed by Daniel DeGrasse
Browse files

drivers: i2c: sam: fix the exception when transferring without data



The issue is found when doing shell command "i2c scan" on sama7g54-ek.
In this case no data will be transferred besides START and STOP. Data
abort would occur on accessing "msg->buf[msg->idx++]" when MMU is
enabled and "msg->idx" is very large.

Signed-off-by: default avatarTony Han <tony.han@microchip.com>
parent 04277560
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment