]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] powerpc: IOMMU: don't ioremap null addresses
authorLinas Vepstas <linas@linas.org>
Fri, 4 Nov 2005 00:55:14 +0000 (18:55 -0600)
committerPaul Mackerras <paulus@samba.org>
Tue, 10 Jan 2006 04:30:31 +0000 (15:30 +1100)
commitd177c207ba16b1db31283e2d1fee7ad4a863584b
tree8afca673d77c1a15585b96df977e39601db535f5
parent3914ac7b0e672131dc2ac8b415ada79c4ccbbb31
[PATCH] powerpc: IOMMU: don't ioremap null addresses

240-ioremap-null-ptr-test.patch

Under highly unusual circumstances, a buggy driver will ask a null ptr
to be ioremapped, an operation that curently succeeds but leads to
later trouble.  Instead, refuse to remap the null pointer.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
(cherry picked from e71d9e598533c1889e7162f5f4647e5d378c102c commit)
arch/powerpc/mm/pgtable_64.c