Skip to content

Commit

Permalink
[PATCH] umem: check pci_set_dma_mask return value correctly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Klauser authored and Linus Torvalds committed Feb 3, 2006
1 parent dfa0859 commit 74adb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/umem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 74adb52

Please sign in to comment.