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

[PATCH] USB usbfs: fix up proc_setconfig

The semaphore is now taken in the caller.

 devio.c |    2 --
 1 files changed, 2 deletions(-)
parent e8f366d4
......@@ -763,7 +763,6 @@ static int proc_setconfig(struct dev_state *ps, void __user *arg)
if (get_user(u, (unsigned int __user *)arg))
return -EFAULT;
down(&ps->dev->serialize);
actconfig = ps->dev->actconfig;
/* Don't touch the device if any interfaces are claimed.
......@@ -799,7 +798,6 @@ static int proc_setconfig(struct dev_state *ps, void __user *arg)
else
status = usb_set_configuration(ps->dev, u);
}
up(&ps->dev->serialize);
return status;
}
......
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