mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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:
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