i2c: xgene: Avoid dma_buffer overrun
SMBus block command uses the first byte of buffer for the data length. The dma_buffer should be increased by 1 to avoid the overrun issue. Reported-by: NPhil Endecott <phil_gjouf_endecott@chezphil.org> Signed-off-by: NHoan Tran <hotran@apm.com> Signed-off-by: NWolfram Sang <wsa@the-dreams.de> Cc: stable@kernel.org
Showing
想要评论请 注册 或 登录