04 Nov, 2014

1 commit


24 Sep, 2014

5 commits


09 Sep, 2014

1 commit

  • Make sure the uwb_dev->bce entry is set before calling uwb_dev_add in
    uwbd_dev_onair so that usermode will only see the device after it is
    properly initialized. This fixes a kernel panic that can occur if
    usermode tries to access the IEs sysfs attribute of a UWB device before
    the driver has had a chance to set the beacon cache entry.

    Signed-off-by: Thomas Pugliese
    Cc: stable@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     

02 Aug, 2014

1 commit

  • Correct typo in the name of the type given to sizeof. Because it is the
    size of a pointer that is wanted, the typo has no impact on compilation or
    execution.

    This problem was found using Coccinelle (http://coccinelle.lip6.fr/). The
    semantic patch used can be found in message 0 of this patch series.

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     

28 May, 2014

5 commits


25 Apr, 2014

1 commit


17 Apr, 2014

1 commit


21 Dec, 2013

4 commits

  • Only acquire rc->uwb_dev.mutex in the error case in
    uwbd_evt_handle_rc_bp_slot_change. This fixes a bug where establishing
    a reservation on a new channel will fail if we were unable to establish
    a reservation on the previous channel due to DRP conflict.

    If rc->uwb_dev.mutex is acquired in the non-error case when the uwb
    system is attempting to start beaconing, it will block because the start
    beaconing code is holding this mutex. This prevents any other
    notifications from the URC from being processed. In particular, the
    DRP_AVAILABILITY notification will not be processed during the start
    beaconing process which can result in a failure to establish a
    reservation. It is safe to not hold the mutex in the non-error
    case since the only other place rc->uwb_dev.beacon_slot is accessed is
    in the same worker thread that uwbd_evt_handle_rc_bp_slot_change
    executes in.

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     
  • Use uwb_rsv_callback wrapper instead of calling rsv->callback directly.
    uwb_rsv_callback checks for NULL and is used by other callers of the
    callback routine.

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     
  • various whitespace and comment cleanups

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     
  • Add debug prints during channel change and beacon actions.

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     

20 Dec, 2013

1 commit


09 Dec, 2013

1 commit


07 Nov, 2013

1 commit

  • Pull driver core / sysfs patches from Greg KH:
    "Here's the big driver core / sysfs update for 3.13-rc1.

    There's lots of dev_groups updates for different subsystems, as they
    all get slowly migrated over to the safe versions of the attribute
    groups (removing userspace races with the creation of the sysfs
    files.) Also in here are some kobject updates, devres expansions, and
    the first round of Tejun's sysfs reworking to enable it to be used by
    other subsystems as a backend for an in-kernel filesystem.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'driver-core-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (83 commits)
    sysfs: rename sysfs_assoc_lock and explain what it's about
    sysfs: use generic_file_llseek() for sysfs_file_operations
    sysfs: return correct error code on unimplemented mmap()
    mdio_bus: convert bus code to use dev_groups
    device: Make dev_WARN/dev_WARN_ONCE print device as well as driver name
    sysfs: separate out dup filename warning into a separate function
    sysfs: move sysfs_hash_and_remove() to fs/sysfs/dir.c
    sysfs: remove unused sysfs_get_dentry() prototype
    sysfs: honor bin_attr.attr.ignore_lockdep
    sysfs: merge sysfs_elem_bin_attr into sysfs_elem_attr
    devres: restore zeroing behavior of devres_alloc()
    sysfs: fix sysfs_write_file for bin file
    input: gameport: convert bus code to use dev_groups
    input: serio: remove bus usage of dev_attrs
    input: serio: use DEVICE_ATTR_RO()
    i2o: convert bus code to use dev_groups
    memstick: convert bus code to use dev_groups
    tifm: convert bus code to use dev_groups
    virtio: convert bus code to use dev_groups
    ipack: convert bus code to use dev_groups
    ...

    Linus Torvalds
     

30 Oct, 2013

1 commit


17 Oct, 2013

1 commit


20 Aug, 2013

1 commit

  • These local symbols are used only in this file.
    Fix the following sparse warnings:

    drivers/uwb/drp-ie.c:30:5: warning: symbol 'uwb_rsv_reason_code' was not declared. Should it be static?
    drivers/uwb/drp-ie.c:58:5: warning: symbol 'uwb_rsv_companion_reason_code' was not declared. Should it be static?

    Signed-off-by: Jingoo Han
    Signed-off-by: Greg Kroah-Hartman

    Jingoo Han
     

13 Aug, 2013

2 commits

  • In the disconnect routine for the hwa_hc interface, it calls
    uwb_pal_unregister to unregister itself from the UWB subsystem. This
    function attempts to clean up the link to the host controller directory in
    the device's UWB radio control interface directory. If the disconnect
    routine for the radio control interface has already run, the uwb directory
    will be gone so the call to sysfs_remove_link generates a warning.

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     
  • This patch fixes a kernel panic that can occur when unplugging the HWA
    dongle while a downstream device is in the process of disconnecting.
    This involved 2 changes. First, call usb_lock_device_for_reset before
    usb_reset_device to synchronize the HWA's post_rest and disconnect
    routines. Second, set the hwarc->neep_urb and hwarc->rd_buffer to NULL
    when they are freed in the error path in the post_reset routine. This
    prevents a double free when the disconnect routine is called and attempts
    to free those resources again.

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     

04 Jul, 2013

1 commit

  • Calling dev_set_name with a single paramter causes it to be handled as a
    format string. Many callers are passing potentially dynamic string
    content, so use "%s" in those cases to avoid any potential accidents,
    including wrappers like device_create*() and bdi_register().

    Signed-off-by: Kees Cook
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kees Cook
     

25 Jun, 2013

1 commit

  • This patch fixes a race condition that caused the HWA_HC interface probe
    function to occasionally fail. The HWA_HC would attempt to register
    itself with the HWA_RC by searching for a uwb_rc class device with the
    same parent device ptr. If the probe function for the HWA_RC interface
    had yet to run, the uwb_rc class device would not have been created
    causing the look up to fail and the HWA_HC probe function to return an
    error causing the device to be unusable.

    The fix is for the HWA to delay registering with the HWA_RC until
    receiving the command from userspace to start the wireless channel. It
    is the responsibility of userspace to ensure that the uwb_rc class
    device has been created before starting the HWA channel.

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     

07 Jun, 2013

1 commit


04 Jun, 2013

1 commit


22 May, 2013

2 commits


30 Apr, 2013

1 commit


07 Feb, 2013

1 commit

  • All in-kernel users of class_find_device() don't really need mutable
    data for match callback.

    In two places (kernel/power/suspend_test.c, drivers/scsi/osd/osd_uld.c)
    this patch changes match callbacks to use const search data.

    The const is propagated to rtc_class_open() and power_supply_get_by_name()
    parameters.

    Note that there's a dev reference leak in suspend_test.c that's not
    touched in this patch.

    Signed-off-by: Michał Mirosław
    Acked-by: Grant Likely
    Signed-off-by: Greg Kroah-Hartman

    Michał Mirosław
     

27 Nov, 2012

1 commit


16 Nov, 2012

1 commit

  • The CONFIG_EXPERIMENTAL config item has not carried much meaning for a
    while now and is almost always enabled by default. As agreed during the
    Linux kernel summit, remove it from any "depends on" lines in Kconfigs.

    Signed-off-by: Kees Cook
    Signed-off-by: Greg Kroah-Hartman

    Kees Cook
     

26 Oct, 2012

1 commit


19 Apr, 2012

2 commits