mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
[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>
This commit is contained in:
parent
999a6a6a2a
commit
016534cffc
1 changed files with 1 additions and 1 deletions
|
@ -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_fill_control_urb(pegasus->ctrl_urb, pegasus->usb,
|
||||||
usb_sndctrlpipe(pegasus->usb, 0),
|
usb_sndctrlpipe(pegasus->usb, 0),
|
||||||
(char *) &pegasus->dr,
|
(char *) &pegasus->dr,
|
||||||
&tmp, 1, ctrl_callback, pegasus);
|
tmp, 1, ctrl_callback, pegasus);
|
||||||
|
|
||||||
add_wait_queue(&pegasus->ctrl_wait, &wait);
|
add_wait_queue(&pegasus->ctrl_wait, &wait);
|
||||||
set_current_state(TASK_UNINTERRUPTIBLE);
|
set_current_state(TASK_UNINTERRUPTIBLE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue