From: Petko Manolov Date: Thu, 30 Mar 2006 06:59:22 +0000 (+0300) Subject: [PATCH] USB: pegasus driver bugfix X-Git-Tag: MMI-PSA29.97-13-9~50144 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=016534cffc5847e2a75b25d10f8c52edec6c8cb7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 5b6675684567..2deb4c01539e 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);