OSDN Git Service

[PATCH] usb: printer double up()
authorPete Zaitcev <zaitcev@redhat.com>
Mon, 25 Jul 2005 19:50:46 +0000 (12:50 -0700)
committerMarcelo Tosatti <marcelo@dmt.cnet>
Mon, 25 Jul 2005 18:12:30 +0000 (15:12 -0300)
commitd09a5eedeb892779ebda1dbc059cb1e0ab79a2cd
treec86321fcc1fee3924ea1e9f4eebc4609f5dcae4b
parent451771c40c6a0c44b57d4fbae8d6803e2213fa53
[PATCH] usb: printer double up()

Doing a double up() is actually safe in Linux, but still, it's a bug.
This fix is present in 2.6.13-rc3.

By Domen Puncer <domen@coderock.org>
up(&usblp->sem) was called twice in a row in this code path.
drivers/usb/printer.c