From: Willem Penninckx Date: Wed, 23 Nov 2011 10:25:34 +0000 (+0100) Subject: HID: usbkbd: synchronize LED URB submission X-Git-Tag: v3.3-rc1~123^2~1^4~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c196adf87514560f867492978ae350d4bbced0bd;p=pandora-kernel.git HID: usbkbd: synchronize LED URB submission usb_kbd_event() and usb_kbd_led() can be called concurrently, but they are not synchronized. They both readwrite kbd->leds, and usb_kbd_event() originally just checked the URB status field, while urb.h states that "It [status field] should not be examined before the URB is returned to the completion handler." To fix this unsynchronized behavior, this patch introduces a boolean representing whether the URB is submitted, and a spinlock. Signed-off-by: Willem Penninckx Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed