[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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue