summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@nuerscht.ch>2006-02-03 12:04:13 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-02-03 17:32:05 +0100
commit74adb52797a7cde217a8ceeaf254a5441a42a72c (patch)
tree805ec25448f1c4bf88b35ade8c2885687a6dc66a /drivers
parent[PATCH] Fix two ext[23] uninitialized warnings (diff)
downloadlinux-74adb52797a7cde217a8ceeaf254a5441a42a72c.tar.xz
linux-74adb52797a7cde217a8ceeaf254a5441a42a72c.zip
[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>
Diffstat (limited to '')
-rw-r--r--drivers/block/umem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/umem.c b/drivers/block/umem.c
index a3614e6a68d0..4ada1268b40d 100644
--- a/drivers/block/umem.c
+++ b/drivers/block/umem.c
@@ -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;
}