]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f4f1752f71650c8c26ed809e6cc3c20aa037437
treeb744e6b010f646b21c6185896141252c49d91de2
parent7274b866a9cac94f35b4eeaee259cc28ae9c6008
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