1. 21 11月, 2010 1 次提交
    • J
      Input: serio HIL MLC - don't deref null, don't leak and return proper error · 39de5210
      Jesper Juhl 提交于
      While reviewing various users of kernel memory allocation functions I came
      across drivers/input/serio/hil_mlc.c::hil_mlc_register() and noticed that:
      
       - it calls kzalloc() but fails to check for a NULL return before use.
       - it makes several allocations and if one fails it doesn't free the
         previous ones.
       - It doesn't return -ENOMEM in the failed memory allocation case (it just
         crashes).
      
      This patch corrects all of the above and also reworks the only caller of
      this function that I could find
      (drivers/input/serio/hp_sdc_mlc.c::hp_sdc_mlc_out()) so that it now checks
      the return value of hil_mlc_register() and properly propagates it on
      failure and I also restructured the code to remove some labels and goto's
      to make it, IMHO nicer to read.
      Signed-off-by: NJesper Juhl <jj@chaosbits.net>
      Tested-by: NHelge Deller <deller@gmx.de>
      Acked-by: NHelge Deller <deller@gmx.de>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      39de5210
  2. 04 12月, 2009 1 次提交
  3. 02 8月, 2009 1 次提交
  4. 30 6月, 2008 1 次提交
  5. 19 5月, 2008 1 次提交
  6. 19 4月, 2008 1 次提交
  7. 16 3月, 2007 1 次提交
    • H
      Input: HIL - fix rwlock recursion bug · 9575499d
      Helge Deller 提交于
      The following bug happens when insmoding hp_sdc_mlc.ko:
      
          HP SDC MLC: Registering the System Domain Controller's HIL MLC.
          BUG: rwlock recursion on CPU#0, hotplug/1814, 00854734
          Backtrace:
           [<10267560>] _raw_write_lock+0x50/0x88
           [<10104008>] _write_lock_irqsave+0x14/0x24
           [<008537d4>] hp_sdc_mlc_out+0x38/0x25c [hp_sdc_mlc]
           [<0084ebd8>] hilse_donode+0x308/0x470 [hil_mlc]
           [<0084ed80>] hil_mlcs_process+0x40/0x6c [hil_mlc]
           [<10130f80>] tasklet_action+0x78/0xb8
           [<10130cec>] __do_softirq+0x60/0xcc
           [<1010428c>] __lock_text_end+0x38/0x48
           [<10108348>] do_cpu_irq_mask+0xf0/0x11c
           [<1010b068>] intr_return+0x0/0xc
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      9575499d
  8. 01 3月, 2007 2 次提交
  9. 27 3月, 2006 1 次提交
  10. 31 10月, 2005 1 次提交
    • T
      [PATCH] fix missing includes · 4e57b681
      Tim Schmielau 提交于
      I recently picked up my older work to remove unnecessary #includes of
      sched.h, starting from a patch by Dave Jones to not include sched.h
      from module.h. This reduces the number of indirect includes of sched.h
      by ~300. Another ~400 pointless direct includes can be removed after
      this disentangling (patch to follow later).
      However, quite a few indirect includes need to be fixed up for this.
      
      In order to feed the patches through -mm with as little disturbance as
      possible, I've split out the fixes I accumulated up to now (complete for
      i386 and x86_64, more archs to follow later) and post them before the real
      patch.  This way this large part of the patch is kept simple with only
      adding #includes, and all hunks are independent of each other.  So if any
      hunk rejects or gets in the way of other patches, just drop it.  My scripts
      will pick it up again in the next round.
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      4e57b681
  11. 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