On Thu, 29 Jul 2004 18:24:08 +0200
Duncan Sands <[EMAIL PROTECTED]> wrote:
> This way the pushdown patch for each ioctl routine becomes
> independent of the others.
> --- local_tree.orig/drivers/usb/core/devio.c 2004-07-25 14:34:32.843129288 +0200
> +++ local_tree/drivers/usb/core/devio.c 2004-07-25 14:37:18.758596644 +0200
> @@ -1180,109 +1180,205 @@
>
> if (!(file->f_mode & FMODE_WRITE))
> return -EPERM;
> - down(&dev->serialize);
> - if (!connected(dev)) {
> - up(&dev->serialize);
> - return -ENODEV;
> - }
>
> switch (cmd) {
> case USBDEVFS_CONTROL:
> + down(&dev->serialize);
> + if (!connected(dev)) {
> + up(&dev->serialize);
> + return -ENODEV;
> + }
> snoop(&dev->dev, "%s: CONTROL\n", __FUNCTION__);
> ret = proc_control(ps, p);
> if (ret >= 0)
> inode->i_mtime = CURRENT_TIME;
> + up(&dev->serialize);
> break;
This is completely nonsensual. Is there a better reason than just
handwaving? Are you going to add a case which does NOT take the
semaphore? If yes, what is it?
-- Pete
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel