From: Petko Manolov Date: Thu, 30 Mar 2006 06:59:22 +0000 (+0300) Subject: [PATCH] USB: pegasus driver bugfix X-Git-Tag: v2.6.17-rc2~57 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=016534cffc5847e2a75b25d10f8c52edec6c8cb7;p=linux-2.6 [PATCH] USB: pegasus driver bugfix Attached is a patch that fixes nasty bug, which i am afraid was there for a long time. It was spotted by Andre Draszik . From: Petko Manolov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/net/pegasus.c b/drivers/usb/net/pegasus.c index 5b66756845..2deb4c0153 100644 --- a/drivers/usb/net/pegasus.c +++ b/drivers/usb/net/pegasus.c @@ -262,7 +262,7 @@ static int set_register(pegasus_t * pegasus, __u16 indx, __u8 data) usb_fill_control_urb(pegasus->ctrl_urb, pegasus->usb, usb_sndctrlpipe(pegasus->usb, 0), (char *) &pegasus->dr, - &tmp, 1, ctrl_callback, pegasus); + tmp, 1, ctrl_callback, pegasus); add_wait_queue(&pegasus->ctrl_wait, &wait); set_current_state(TASK_UNINTERRUPTIBLE);