[PATCH] umem: check pci_set_dma_mask return value correctly
Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
dfa08592ca
commit
74adb52797
|
@ -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);
|
card->card_number, dev->bus->number, dev->devfn);
|
||||||
|
|
||||||
if (pci_set_dma_mask(dev, 0xffffffffffffffffLL) &&
|
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);
|
printk(KERN_WARNING "MM%d: NO suitable DMA found\n",num_cards);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue