1. 29 11月, 2008 1 次提交
    • A
      toshiba_acpi: close race in toshiba_acpi driver · 23d0a65c
      Arjan van de Ven 提交于
      the toshiba ACPI driver will, in a failure case, free the rfkill state
      before stopping the polling timer that would use this state. More interesting,
      in the same failure case handling, it calls the exit function, which also
      frees the rfkill state, but after stopping the polling.
      
      If the race happens, a NULL pointer is passed to rfkill_force_state()
      which then causes a nice dereference.
      
      Fix the race by just not doing the too-early freeing of the rfkill state.
      
      This appears to be the cause of a hot issue on kerneloops.org; while I
      have no solid evidence of that this patch will fix the issue, the race
      appears rather real.
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      23d0a65c
  2. 25 10月, 2008 1 次提交
  3. 11 10月, 2008 1 次提交
    • H
      ACPI: toshiba_acpi.c fix sparse signedness mismatch warnings · 9e113e00
      Harvey Harrison 提交于
      set_bit expects unsigned int, and we start with a u32 anyway.
      drivers/acpi/toshiba_acpi.c:397:14: warning: incorrect type in argument 1 (different signedness)
      drivers/acpi/toshiba_acpi.c:397:14:    expected unsigned int [usertype] *word
      drivers/acpi/toshiba_acpi.c:397:14:    got int *<noident>
      drivers/acpi/toshiba_acpi.c:399:14: warning: incorrect type in argument 1 (different signedness)
      drivers/acpi/toshiba_acpi.c:399:14:    expected unsigned int [usertype] *word
      drivers/acpi/toshiba_acpi.c:399:14:    got int *<noident>
      drivers/acpi/toshiba_acpi.c:401:14: warning: incorrect type in argument 1 (different signedness)
      drivers/acpi/toshiba_acpi.c:401:14:    expected unsigned int [usertype] *word
      drivers/acpi/toshiba_acpi.c:401:14:    got int *<noident>
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      9e113e00
  4. 06 9月, 2008 1 次提交
  5. 12 3月, 2008 1 次提交
  6. 15 11月, 2007 1 次提交
    • A
      Fix Oops in toshiba_acpi error return path · 1299342b
      Andrey Borzenkov 提交于
      When backlight_device_register() fails, return after undo initialization, do
      not try to use pointer that just was reset to NULL
      
      This fixes this oops:
      
      [ 1595.177672]  [<c010480a>] show_trace_log_lvl+0x1a/0x30
      [ 1595.177706]  [<c01052a2>] show_trace+0x12/0x20
      [ 1595.177718]  [<c0105305>] dump_stack+0x15/0x20
      [ 1595.177728]  [<c01c9375>] kobject_shadow_add+0x125/0x1c0
      [ 1595.177754]  [<c01c941a>] kobject_add+0xa/0x10
      [ 1595.177764]  [<c0239a37>] device_add+0x97/0x5d0
      [ 1595.177776]  [<c0239f82>] device_register+0x12/0x20
      [ 1595.177786]  [<dfd912df>] backlight_device_register+0x9f/0x110 [backlight]
      [ 1595.177814]  [<df861117>] toshiba_acpi_init+0x117/0x15e [toshiba_acpi]
      [ 1595.177834]  [<c013e28d>] sys_init_module+0xfd/0x14e0
      [ 1595.177871]  [<c0104112>] sysenter_past_esp+0x5f/0x99
      [ 1595.177883]  =======================
      [ 1595.177890] Could not register toshiba backlight device
      [ 1595.177985] BUG: unable to handle kernel NULL pointer dereference at virtual address 00000004
      ...
      [ 1595.394097] EIP:    0060:[<df861143>]    Not tainted VLI
      [ 1595.394101] EFLAGS: 00010282   (2.6.23-rc9-1avb #24)
      [ 1595.480081] EIP is at toshiba_acpi_init+0x143/0x15e [toshiba_acpi]
      Signed-off-by: NAndrey Borzenkov <arvidjaar@mail.ru>
      Cc: John Belmonte <toshiba_acpi@memebeam.org>
      Acked-by: NRichard Purdie <rpurdie@rpsys.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1299342b
  7. 15 10月, 2007 1 次提交
  8. 17 6月, 2007 1 次提交
  9. 01 6月, 2007 1 次提交
    • S
      acpi: fix section mismatch warning in asus + toshiba · b2b77b23
      Sam Ravnborg 提交于
      Fix following section mismatch warnings in acpi
      
      WARNING: drivers/acpi/asus_acpi.o(.init.text+0xb7): Section mismatch: reference to .exit.text: (after 'init_module')
      WARNING: o-i386/drivers/acpi/toshiba_acpi.o(.init.text+0x13a): Section mismatch: reference to .exit.text: (after 'init_module')
      
      The exit function is used in the init function during an error codition.
      As __exit may be discarded during link-time / run-time this is no good.
      Do not mark the exit function __exit.
      
      Note: This warning is only seen by my local copy of modpost
            but the change will soon hit upstream.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Len Brown <lenb@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b2b77b23
  10. 20 2月, 2007 2 次提交
  11. 17 2月, 2007 1 次提交
  12. 09 2月, 2007 1 次提交
  13. 06 1月, 2007 1 次提交
  14. 20 12月, 2006 1 次提交
    • Y
      ACPI: video: Add dev argument for backlight_device_register · 519ab5f2
      Yu Luming 提交于
      This patch set adds generic abstract layer support for acpi video driver to
      have generic user interface to control backlight and output switch control by
      leveraging the existing backlight sysfs class driver, and by adding a new
      video output sysfs class driver.
      
      This patch:
      
      Add dev argument for backlight_device_register to link the class device to
      real device object.  The platform specific driver should find a way to get the
      real device object for their video device.
      
      [akpm@osdl.org: build fix]
      [akpm@osdl.org: fix msi-laptop.c]
      Signed-off-by: NLuming Yu <Luming.yu@intel.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      519ab5f2
  15. 21 10月, 2006 1 次提交
  16. 05 8月, 2005 1 次提交
  17. 12 7月, 2005 2 次提交
  18. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      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!
      1da177e4