archive mirror
 help / color / mirror / Atom feed
From: Alexey Dobriyan <>
To: Andrew Morton <>
Cc: Tobias Klauser <>,
Subject: [PATCH] umem: check pci_set_dma_mask return value correctly
Date: Fri, 20 Jan 2006 23:24:42 +0300	[thread overview]
Message-ID: <> (raw)

From: Tobias Klauser <>

Signed-off-by: Tobias Klauser <>
Signed-off-by: Alexey Dobriyan <>

 drivers/block/umem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/block/umem.c
+++ b/drivers/block/umem.c
@@ -882,7 +882,7 @@ static int __devinit mm_pci_probe(struct
 	       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;

                 reply	other threads:[~2006-01-20 20:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \
    --subject='Re: [PATCH] umem: check pci_set_dma_mask return value correctly' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
on how to clone and mirror all data and code used for this inbox