Commit c441f19b authored by Duncan Sands's avatar Duncan Sands Committed by Greg Kroah-Hartman

[PATCH] USB usbfs: fix up releaseintf

The semaphore is now taken in the callers.

 devio.c |    2 --
 1 files changed, 2 deletions(-)
parent 2422de2c
......@@ -399,7 +399,6 @@ static int releaseintf(struct dev_state *ps, unsigned int intf)
return -EINVAL;
err = -EINVAL;
dev = ps->dev;
down(&dev->serialize);
/* lock against other changes to driver bindings */
down_write(&usb_bus_type.subsys.rwsem);
if (test_and_clear_bit(intf, &ps->ifclaimed)) {
......@@ -408,7 +407,6 @@ static int releaseintf(struct dev_state *ps, unsigned int intf)
err = 0;
}
up_write(&usb_bus_type.subsys.rwsem);
up(&dev->serialize);
return err;
}
......
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