From: Greg KH <greg@kroah.com>
To: Chris Wedgwood <cw@f00f.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Enforce USB interface claims
Date: Mon, 24 Jan 2005 22:05:55 -0800 [thread overview]
Message-ID: <20050125060555.GC2061@kroah.com> (raw)
In-Reply-To: <20050123111258.GA29513@taniwha.stupidest.org>
On Sun, Jan 23, 2005 at 03:12:58AM -0800, Chris Wedgwood wrote:
> Greg,
Adding linux-usb-devel to the CC:
> How would you feel about something like this?
>
> Index: cw-current/drivers/usb/core/devio.c
> ===================================================================
> --- cw-current.orig/drivers/usb/core/devio.c 2005-01-19 14:52:27.987890276 -0800
> +++ cw-current/drivers/usb/core/devio.c 2005-01-22 18:09:22.753895659 -0800
> @@ -417,10 +417,7 @@
> return -EINVAL;
> if (test_bit(ifnum, &ps->ifclaimed))
> return 0;
> - /* if not yet claimed, claim it for the driver */
> - dev_warn(&ps->dev->dev, "usbfs: process %d (%s) did not claim interface %u before use\n",
> - current->pid, current->comm, ifnum);
> - return claimintf(ps, ifnum);
> + return -EINVAL;
> }
>
> static int findintfep(struct usb_device *dev, unsigned int ep)
Um, why? I think this is there to help with "broken" userspace code
that was written before we enforced the rules of "you must claim an
interface before using it." As such, I don't think we can apply this
patch.
thanks,
greg k-h
next prev parent reply other threads:[~2005-01-25 6:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-23 11:12 [PATCH] Enforce USB interface claims Chris Wedgwood
2005-01-25 6:05 ` Greg KH [this message]
2005-01-25 7:21 ` Chris Wedgwood
2005-01-25 8:27 ` Duncan Sands
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050125060555.GC2061@kroah.com \
--to=greg@kroah.com \
--cc=cw@f00f.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.