From b181565ee6a0f894bd6a134b9e5bed2966bdf9b3 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Wed, 10 Aug 2011 17:12:11 +0530 Subject: [PATCH] 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-format-patch failed