22 Jul, 2008

2 commits


21 Jun, 2008

1 commit


02 Feb, 2008

1 commit

  • Over two years ago, the Linux USB developers stated that they believed
    there was no way to create a USB kernel driver that was not under the
    GPL. This patch moves the USB apis to enforce that decision.

    There are no known closed source USB drivers in the wild, so this patch
    should cause no problems.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

13 Jul, 2007

1 commit

  • This patch (as908) adds central protection in usbcore for the
    prototypical race between opening and unregistering a char device.
    The spinlock used to protect the minor-numbers array is replaced with
    an rwsem, which can remain locked across a call to a driver's open()
    method. This guarantees that open() and deregister() will be mutually
    exclusive.

    The private locks currently used in several individual drivers for
    this purpose are no longer necessary, and the patch removes them. The
    following USB drivers are affected: usblcd, idmouse, auerswald,
    legousbtower, sisusbvga/sisusb, ldusb, adutux, iowarrior, and
    usb-skeleton.

    As a side effect of this change, usb_deregister_dev() must not be
    called while holding a lock that is acquired by open(). Unfortunately
    a number of drivers do this, but luckily the solution is simple: call
    usb_deregister_dev() before acquiring the lock.

    In addition to these changes (and their consequent code
    simplifications), the patch fixes a use-after-free bug in adutux and a
    race between open() and release() in iowarrior.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     

08 Feb, 2007

1 commit


04 Oct, 2006

1 commit


28 Sep, 2006

1 commit


03 Aug, 2006

1 commit


01 Jul, 2006

1 commit


22 Jun, 2006

2 commits


29 Mar, 2006

1 commit

  • Mark the f_ops members of inodes as const, as well as fix the
    ripple-through this causes by places that copy this f_ops and then "do
    stuff" with it.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     

18 Nov, 2005

1 commit


29 Oct, 2005

2 commits

  • Also fixes all drivers that set this field, and removes some other devfs
    specfic USB logic.

    Signed-off-by: Greg Kroah-Hartman

    drivers/usb/class/usblp.c | 3 +--
    drivers/usb/core/file.c | 19 ++++---------------
    drivers/usb/image/mdc800.c | 3 +--
    drivers/usb/input/aiptek.c | 2 +-
    drivers/usb/input/hiddev.c | 3 +--
    drivers/usb/media/dabusb.c | 3 +--
    drivers/usb/misc/auerswald.c | 3 +--
    drivers/usb/misc/idmouse.c | 5 ++---
    drivers/usb/misc/legousbtower.c | 5 ++---
    drivers/usb/misc/rio500.c | 3 +--
    drivers/usb/misc/sisusbvga/sisusb.c | 5 -----
    drivers/usb/misc/usblcd.c | 9 ++++-----
    drivers/usb/usb-skeleton.c | 3 +--
    include/linux/usb.h | 7 ++-----
    14 files changed, 22 insertions(+), 51 deletions(-)

    Greg Kroah-Hartman
     
  • The previous patch adding the ability to nest struct class_device
    changed the paramaters to the call class_device_create(). This patch
    fixes up all in-kernel users of the function.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

21 Jun, 2005

2 commits


19 Apr, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds