diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-26 17:26:16 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-07-06 15:06:23 +0100 |
commit | 6023813a2d5949ba368e7df464f2ccb649719777 (patch) | |
tree | bbc874c7e097539bcc03a841a2ae45d79811413a /drivers/nubus | |
parent | 096bcc231fd263bc8df215f0d616b08e3696c6db (diff) |
mtd: gpmi-nand: fix read page when reading to vmalloced area
The gpmi-nand driver uses virt_addr_valid() to check whether a buffer
is suitable for dma. If it's not, a driver allocated buffer is used
instead. Then after a page read the driver allocated buffer must be
copied to the user supplied buffer. This does not happen since commit
7725cc85932bd02dd12c23108e0ef748c551ccba.
This patch fixes the issue. The bug is encountered with UBI which uses a
vmalloced buffer for the volume table.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: snijsure@grid-net.com
Acked-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/nubus')
0 files changed, 0 insertions, 0 deletions