arch/unicore32/mm/ioremap.c: return NULL on invalid pfn
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Jun 2014 23:05:54 +0000 (16:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:53:53 +0000 (16:53 -0700)
commit2accff4ef5c5831a9cc6319394a9f61cc9de8534
treee60a28198315d86e17f40fe5ff3f0da5f03e84ff
parentacc8a1c00585c5cd62fcafd9309ef40ac35e8bfa
arch/unicore32/mm/ioremap.c: return NULL on invalid pfn

__uc32_ioremap_pfn_caller() should return NULL when the pfn is found to be
invalid.

From a recommendation by Guan Xuetao.

Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/unicore32/mm/ioremap.c