summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/vio.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2012-07-27 17:12:50 +0200
committerMarek Szyprowski <m.szyprowski@samsung.com>2012-07-30 12:25:45 +0200
commit9fa8af91f0679f2abbebe1382b937264f3a8b981 (patch)
treead23ecfd24dce5f64b151804d6308413b17257f8 /arch/powerpc/kernel/vio.c
parentARM: dma-mapping: add more sanity checks in arm_dma_mmap() (diff)
downloadlinux-9fa8af91f0679f2abbebe1382b937264f3a8b981.tar.xz
linux-9fa8af91f0679f2abbebe1382b937264f3a8b981.zip
ARM: dma-mapping: fix error path for memory allocation failure
This patch fixes incorrect check in error path. When the allocation of first page fails, the kernel ops appears due to accessing -1 element of the pages array. Reported-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'arch/powerpc/kernel/vio.c')
0 files changed, 0 insertions, 0 deletions