Commit cf16aaca authored by Vojtech Pavlik's avatar Vojtech Pavlik

USB HID drivers:

	- bug fix for lockup on SMP machines
parent 2e9f2e35
...@@ -1048,6 +1048,7 @@ static void hid_irq_out(struct urb *urb) ...@@ -1048,6 +1048,7 @@ static void hid_irq_out(struct urb *urb)
if (hid->outhead != hid->outtail) { if (hid->outhead != hid->outtail) {
hid_submit_out(hid); hid_submit_out(hid);
spin_unlock_irqrestore(&hid->outlock, flags);
return; return;
} }
...@@ -1079,6 +1080,7 @@ static void hid_ctrl(struct urb *urb) ...@@ -1079,6 +1080,7 @@ static void hid_ctrl(struct urb *urb)
if (hid->ctrlhead != hid->ctrltail) { if (hid->ctrlhead != hid->ctrltail) {
hid_submit_ctrl(hid); hid_submit_ctrl(hid);
spin_unlock_irqrestore(&hid->ctrllock, flags);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment