usblp: mutex in usblp_check_status
authorPete Zaitcev <zaitcev@redhat.com>
Tue, 14 Aug 2007 05:50:13 +0000 (22:50 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:14 +0000 (14:55 -0700)
commitfc401e697f8c00ad1178a6758e86e3881dfa3181
treeb744e6b010f646b21c6185896141252c49d91de2
parent7b5cd5fefbe023625a7ff7604e8beb9a15a9efab
usblp: mutex in usblp_check_status

Add a mutex to protect the ->statusbuf. Not really an issue, because CUPS
is single-threaded when it talks to the printer, but I feel safer this way.
This should be deadlock-free, but I kept this as a separate patch in case
someone ends running a git bisect.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/usblp.c