From: Viresh Kumar Date: Wed, 10 Aug 2011 11:42:11 +0000 (+0530) Subject: spi/spi-pl022: Don't allocate more sg than required. X-Git-Tag: v3.2-rc1~123^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b181565ee6a0f894bd6a134b9e5bed2966bdf9b3;p=pandora-kernel.git spi/spi-pl022: Don't allocate more sg than required. In routine configure_dma(), if transfer->len = PAGE_SIZE, then pages is one more than required. While leads to one more sg getting allocated. This is wrong. Correct this to allocate correct number of sg. Signed-off-by: Viresh Kumar Tested-by: Linus Walleij Signed-off-by: Grant Likely --- Reading git-diff-tree failed