From: Huang Shijie Date: Fri, 11 Oct 2013 10:31:00 +0000 (+0800) Subject: serial: imx: fix the wrong number of scatterlist entries when xmit->head is 0 X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~63^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=947c74eba85bff743bc15adbdd9193ffff60c29f;p=pandora-kernel.git serial: imx: fix the wrong number of scatterlist entries when xmit->head is 0 When the (xmit->tail > xmit->head) is true and the xmit->head is 0, we only need one DMA scatterlist in actually. Current code uses two DMA scatterlists in this case, this is obviously wrong. This patch fixes it. Signed-off-by: Huang Shijie Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed