[PATCH] umem: check pci_set_dma_mask return value correctly

Signed-off-by: Tobias Klauser <[email protected]>
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Tobias Klauser 2006-02-03 03:04:13 -08:00 • committed by Linus Torvalds
commit 74adb52797

View file

@ -882,7 +882,7 @@ static int __devinit mm_pci_probe(struct pci_dev *dev, const struct pci_device_i
card->card_number, dev->bus->number, dev->devfn);
if (pci_set_dma_mask(dev, 0xffffffffffffffffLL) &&
!pci_set_dma_mask(dev, 0xffffffffLL)) {
pci_set_dma_mask(dev, 0xffffffffLL)) {
printk(KERN_WARNING "MM%d: NO suitable DMA found\n",num_cards);
return -ENOMEM;
}