summaryrefslogtreecommitdiffstats
path: root/drivers/usb/net
diff options
context:
space:
mode:
authorPetko Manolov <petkan@nucleusys.com>2006-03-30 08:59:22 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-04-14 20:12:22 +0200
commit016534cffc5847e2a75b25d10f8c52edec6c8cb7 (patch)
tree524f60f9d66ac736dcfd261805bdeb39316f409c /drivers/usb/net
parent[PATCH] USB: add new wacom devices to usb hid-core list (diff)
downloadlinux-016534cffc5847e2a75b25d10f8c52edec6c8cb7.tar.xz
linux-016534cffc5847e2a75b25d10f8c52edec6c8cb7.zip
[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 <kernel@andred.net>. From: Petko Manolov <petkan@nucleusys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/net')
-rw-r--r--drivers/usb/net/pegasus.c2
1 files changed, 1 insertions, 1 deletions
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);