x86: don't do dma if mask is NULL.
authorGlauber Costa <gcosta@redhat.com>
Wed, 9 Apr 2008 16:18:09 +0000 (13:18 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:58 +0000 (19:19 +0200)
commitbb8ada95a7c11adf3dad4e8d5c55ef1650560592
tree3cf1e92ccb67dfef98a7f2660faaf097086d2cd0
parentda60cab4dd922cd933e82bace490f6155a32a90e
x86: don't do dma if mask is NULL.

if the device hasn't provided a mask, abort allocation.
Note that we're using a fallback device now, so it does not cover
the case of a NULL device: just drivers passing NULL masks around.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/pci-dma_32.c