mtd: omap2: fix resource leak in prefetch-busy path
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 11 Apr 2012 01:04:34 +0000 (04:04 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 03:52:10 +0000 (22:52 -0500)
commitd7efe2281db53544400ac83160a79cf8925598d9
treeb477c26b2f31adfce60268c12b11403879661212
parent8da8ba2ea6ad52ea8558384f38586b0c1a516e9d
mtd: omap2: fix resource leak in prefetch-busy path

If prefetch engine is busy, current code "forgets" to call
dma_unmap_single(), which results in a deadlock later, so add it.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/omap2.c