Skip to content

Commit

Permalink
[PATCH] USB: pegasus driver bugfix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Petko Manolov authored and Greg Kroah-Hartman committed Apr 14, 2006
1 parent 999a6a6 commit 016534c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/net/pegasus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 016534c

Please sign in to comment.