[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] usbback: fix after c/s 1232:8806dfb939d4


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-linux-2.6.18-xen <patchbot@xxxxxxx>
  • Date: Tue, 28 Jan 2014 13:11:03 +0000
  • Delivery-date: Tue, 28 Jan 2014 13:11:10 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1390912714 -3600
# Node ID f2e452d986249c934ed1ab0c73d3c73b6cbc2b26
# Parent  6ea18f7269166802f9c03c4bf48e362e89dfdad5
usbback: fix after c/s 1232:8806dfb939d4

That c/s ("backends: Check for insane amounts of requests on the ring")
copied from blkback/blktap/scsiback a switch statement that is valid
there, but not here - the return value from usbbk_start_submit_urb()
could be any positive value, not just one.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---


diff -r 6ea18f726916 -r f2e452d98624 drivers/xen/usbback/usbback.c
--- a/drivers/xen/usbback/usbback.c     Mon Jan 20 10:44:19 2014 +0100
+++ b/drivers/xen/usbback/usbback.c     Tue Jan 28 13:38:34 2014 +0100
@@ -1013,7 +1013,7 @@ static int usbbk_start_submit_urb(usbif_
 
        RING_FINAL_CHECK_FOR_REQUESTS(&usbif->urb_ring, more_to_do);
 
-       return more_to_do;
+       return !!more_to_do;
 }
 
 void usbbk_hotplug_notify(usbif_t *usbif, int portnum, int speed)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.