mtd: omap2: fix resource leak in prefetch-busy path
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 11 Apr 2012 00:51:46 +0000 (03:51 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 27 Apr 2012 21:27:54 +0000 (00:27 +0300)
commit977875dd6dd89154d1b31be625e80716d1472325
treecedb5262ace8477533e0b86da08cb5a8d1ad9917
parente04b6fe7f7b506d7375ccda3afff624662f763a1
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>
drivers/mtd/nand/omap2.c