From: Leilei Zhao Date: Fri, 27 Feb 2015 08:07:14 +0000 (+0800) Subject: tty/serial: at91: correct check of buf used in DMA X-Git-Tag: omap-for-v4.1/fixes-rc1~74^2~77^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c2770541040318fa6ac0ac4424d8af6dd0709bf;p=pandora-kernel.git tty/serial: at91: correct check of buf used in DMA We only use buf of ring In DMA rx function while using buf of xmit in DMA tx function. So in DMA rx we need definitively to check the buf of ring which is corresponding to DMA rx function. And use macro PAGE_ALIGNED to simplify the expression. Signed-off-by: Leilei Zhao Acked-by: Nicolas Ferre Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed