1. 26 Jul, 2010 7 commits
    • Matthew Garrett's avatar
      [CPUFREQ] pcc driver should check for pcch method before calling _OSC · 47f8bcf3
      Matthew Garrett authored
      The pcc specification documents an _OSC method that's incompatible with the
      one defined as part of the ACPI spec. This shouldn't be a problem as both
      are supposed to be guarded with a UUID. Unfortunately approximately nobody
      (including HP, who wrote this spec) properly check the UUID on entry to the
      _OSC call. Right now this could result in surprising behaviour if the pcc
      driver performs an _OSC call on a machine that doesn't implement the pcc
      specification. Check whether the PCCH method exists first in order to reduce
      this probability.
      Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
      Cc: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      47f8bcf3
    • Xiaotian Feng's avatar
      [CPUFREQ] fix memory leak in cpufreq_add_dev · 6f90388a
      Xiaotian Feng authored
      We didn't free policy->related_cpus in error path err_unlock_policy.
      This is catched by following kmemleak report:
      
      unreferenced object 0xffff88022a0b96d0 (size 512):
        comm "modprobe", pid 886, jiffies 4294689177 (age 780.694s)
        hex dump (first 32 bytes):
          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
          00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
        backtrace:
          [<ffffffff8111ebe5>] create_object+0x186/0x281
          [<ffffffff814fad4f>] kmemleak_alloc+0x60/0xa7
          [<ffffffff8111127a>] kmem_cache_alloc_node_notrace+0x120/0x142
          [<ffffffff81262e4f>] alloc_cpumask_var_node+0x2c/0xd7
          [<ffffffff81262f0b>] alloc_cpumask_var+0x11/0x13
          [<ffffffff81262f1c>] zalloc_cpumask_var+0xf/0x11
          [<ffffffff8140fac0>] cpufreq_add_dev+0x11f/0x547
          [<ffffffff81334bda>] sysdev_driver_register+0xc2/0x11d
          [<ffffffff8140e334>] cpufreq_register_driver+0xcb/0x1b8
          [<ffffffffa032e040>] 0xffffffffa032e040
          [<ffffffff810021ba>] do_one_initcall+0x5e/0x15c
          [<ffffffff81087f94>] sys_init_module+0xa6/0x1e6
          [<ffffffff81009bc2>] system_call_fastpath+0x16/0x1b
          [<ffffffffffffffff>] 0xffffffffffffffff
      Signed-off-by: default avatarXiaotian Feng <dfeng@redhat.com>
      Cc: Thomas Renninger <trenn@suse.de>
      Cc: Prarit Bhargava <prarit@redhat.com>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      6f90388a
    • Andrej Gelenberg's avatar
      [CPUFREQ] revert "[CPUFREQ] remove rwsem lock from CPUFREQ_GOV_STOP call (second call site)" · accd8466
      Andrej Gelenberg authored
      395913d0 ("[CPUFREQ] remove rwsem lock
      from CPUFREQ_GOV_STOP call (second call site)") is not needed, because
      there is no rwsem lock in cpufreq_ondemand and cpufreq_conservative
      anymore.  Lock should not be released until the work done.
      
      Addresses https://bugzilla.kernel.org/show_bug.cgi?id=1594Signed-off-by: default avatarAndrej Gelenberg <andrej.gelenberg@udo.edu>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Acked-by: default avatarMathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      accd8466
    • Linus Torvalds's avatar
      Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 · dbbe4649
      Linus Torvalds authored
      * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
        ACPI / Sleep: Allow the NVS saving to be skipped during suspend to RAM
        ACPI: create "processor.bm_check_disable" boot param
        ACPI: skip checking BM_STS if the BIOS doesn't ask for it
        ACPI: fix unused function warning
        ACPI: processor: fix processor_physically_present on UP
        ACPI video: fix string mismatch for Sony SR290 laptop
        ACPI battery: don't invoke power_supply_changed twice when battery is hot-added
        ACPI: handle systems which asynchoronously enable ACPI mode
      dbbe4649
    • Eric W. Biederman's avatar
      Driver-core: Always create class directories for classses that support namespaces. · 24b1442d
      Eric W. Biederman authored
      This fixes the regression in 2.6.35-rcX where bluetooth network devices
      would fail to be deleted from sysfs, causing their destruction and
      recreation to fail.  In addition this fixes the mac80211_hwsim driver
      where it would leave around sysfs files when the driver was removed.
      
      This problem is discussed at
        https://bugzilla.kernel.org/show_bug.cgi?id=16257
      
      The reason for the regression is that the network namespace support
      added to sysfs expects and requires that network devices be put in
      directories that can contain only network devices.
      
      Today get_device_parent almost provides that guarantee for all class
      devices, except for a specific exception when the parent of a class
      devices is a class device.  It would be nice to simply remove that
      arguably incorrect special case, but apparently the input devices depend
      on it being there.  So I have only removed it for class devices with
      network namespace support.  Which today are the network devices.
      
      It has been suggested that a better fix would be to change the parent
      device from a class device to a bus device, which in the case of the
      bluetooth driver would change /sys/class/bluetooth to /sys/bus/bluetoth,
      I can not see how we would avoid significant userspace breakage if we
      were to make that change.
      
      Adding an extra directory in the path to the device will also be
      userspace visible but it is much less likely to break things.
      Everything is still accessible from /sys/class (for example), and it
      fixes two bugs.  Adding an extra directory fixes a 3 year old regression
      introduced with the new sysfs layout that makes it impossible to rename
      bnep0 network devices to names that conflict with hci device attributes
      like hci_revsion.  Adding an additional directory removes the new
      failure modes introduced by the network namespace code.
      
      If it weren't for the regession in the renaming of network devices I
      would figure out how to just make the sysfs code deal with this
      configuration of devices.
      
      In summary this patch fixes regressions by changing:
      "/sys/class/bluetooth/hci0/bnep0" to "/sys/class/bluetooth/hci0/net/bnep0".
      Reported-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Reported-by: default avatarJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
      Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      24b1442d
    • Michael S. Tsirkin's avatar
      virtio: fix oops on OOM · 1fe9b6fe
      Michael S. Tsirkin authored
      virtio ring was changed to return an error code on OOM,
      but one caller was missed and still checks for vq->vring.num.
      The fix is just to check for <0 error code.
      
      Long term it might make sense to change goto add_head to
      just return an error on oom instead, but let's apply
      a minimal fix for 2.6.35.
      Reported-by: default avatarChris Mason <chris.mason@oracle.com>
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Tested-by: default avatarChris Mason <chris.mason@oracle.com>
      Cc: stable@kernel.org # .34.x
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1fe9b6fe
    • Dmitry Torokhov's avatar
      Input: RX51 keymap - fix recent compile breakage · 2e65a207
      Dmitry Torokhov authored
      Commit 3fea6026 ("Input: twl40300-keypad - fix handling of "all
      ground" rows") broke compilation as I managed to use non-existent
      keycodes.
      Reported-by: default avatarArjan van de Ven <arjan@infradead.org>
      Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2e65a207
  2. 25 Jul, 2010 2 commits
  3. 23 Jul, 2010 9 commits
  4. 22 Jul, 2010 22 commits