public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] r8192U_core: test for negative error in rtl8192_rx_isr()?
@ 2009-11-20 19:12 Roel Kluin
  2009-12-18 19:33 ` patch staging-rtl8192su-fix-test-for-negative-error-in-rtl8192_rx_isr.patch added to gregkh-2.6 tree gregkh
  0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-11-20 19:12 UTC (permalink / raw)
  To: Greg Kroah-Hartman, devel, Andrew Morton, LKML, bzolnier

The error tested for is negative

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
 drivers/staging/rtl8192su/r8192U_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Is this maybe required?

diff --git a/drivers/staging/rtl8192su/r8192U_core.c b/drivers/staging/rtl8192su/r8192U_core.c
index 66274d7..b492ff5 100644
--- a/drivers/staging/rtl8192su/r8192U_core.c
+++ b/drivers/staging/rtl8192su/r8192U_core.c
@@ -1501,7 +1501,7 @@ static void rtl8192_rx_isr(struct urb *urb)
         urb->context = skb;
         skb_queue_tail(&priv->rx_queue, skb);
         err = usb_submit_urb(urb, GFP_ATOMIC);
-	if(err && err != EPERM)
+	if(err && err != -EPERM)
 		printk("can not submit rxurb, err is %x,URB status is %x\n",err,urb->status);
 }
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* patch staging-rtl8192su-fix-test-for-negative-error-in-rtl8192_rx_isr.patch added to gregkh-2.6 tree
  2009-11-20 19:12 [PATCH] r8192U_core: test for negative error in rtl8192_rx_isr()? Roel Kluin
@ 2009-12-18 19:33 ` gregkh
  0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2009-12-18 19:33 UTC (permalink / raw)
  To: roel.kluin, akpm, gregkh, linux-kernel


This is a note to let you know that I've just added the patch titled

    Subject: Staging: rtl8192su: fix test for negative error in rtl8192_rx_isr()

to my gregkh-2.6 tree.  Its filename is

    staging-rtl8192su-fix-test-for-negative-error-in-rtl8192_rx_isr.patch

This tree can be found at 
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


>From roel.kluin@gmail.com  Fri Dec 18 10:10:01 2009
From: Roel Kluin <roel.kluin@gmail.com>
Date: Fri, 20 Nov 2009 20:12:33 +0100
Subject: Staging: rtl8192su: fix test for negative error in rtl8192_rx_isr()
To: Greg Kroah-Hartman <gregkh@suse.de>, devel@driverdev.osuosl.org, Andrew Morton <akpm@linux-foundation.org>, LKML <linux-kernel@vger.kernel.org>, bzolnier@gmail.com
Message-ID: <4B06EA21.1010405@gmail.com>


The error tested for is negative

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 drivers/staging/rtl8192su/r8192U_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/staging/rtl8192su/r8192U_core.c
+++ b/drivers/staging/rtl8192su/r8192U_core.c
@@ -1501,7 +1501,7 @@ static void rtl8192_rx_isr(struct urb *u
         urb->context = skb;
         skb_queue_tail(&priv->rx_queue, skb);
         err = usb_submit_urb(urb, GFP_ATOMIC);
-	if(err && err != EPERM)
+	if(err && err != -EPERM)
 		printk("can not submit rxurb, err is %x,URB status is %x\n",err,urb->status);
 }
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-18 19:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-20 19:12 [PATCH] r8192U_core: test for negative error in rtl8192_rx_isr()? Roel Kluin
2009-12-18 19:33 ` patch staging-rtl8192su-fix-test-for-negative-error-in-rtl8192_rx_isr.patch added to gregkh-2.6 tree gregkh

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