1. 25 Nov, 2006 1 commit
  2. 24 Nov, 2006 14 commits
  3. 23 Nov, 2006 4 commits
    • Adrian Bunk's avatar
      [SCSI] advansys pci tweaks. · 5ab53cfe
      Adrian Bunk authored
      Remove a lot of duplicate #defines from the advansys driver,
      and make them look like PCI IDs as defined elsewhere in the kernel.
      Also add a module table so that it automatically gets picked up
      by tools relying on modinfo output (like say, distro installers).
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      5ab53cfe
    • Randy Dunlap's avatar
      advansys section fixes · bc1061ba
      Randy Dunlap authored
      Priority: not critical.
      Mark 3 functions __init.  Saves a little memory.
      This makes these functions' calls to AdvWaitEEPCmd() (which is __init)
      be clean (i.e., eliminates text -> init -> text call chain).
      
      Fix multiple section mismatch warnings:
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a22) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a4e) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a79) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7aa2) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7abb) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7ae0) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b0c) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b37) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b60) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b79) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7b9e) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7bca) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7bf5) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7c1e) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7c37) and 'AdvExeScsiQueue'
      Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      bc1061ba
    • Linus Torvalds's avatar
      [SCSI] advansys driver: limp along on x86 · 3e7fbd08
      Linus Torvalds authored
      Let people enable the advansys driver on x86-32, even though it's broken
      on other architectures due to missing DMA mapping infrastructure.
      
      It's used by Jeffrey Phillips Freeman <jeffreyfreeman@syncleus.com> and
      possibly others.
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      3e7fbd08
    • Alexey Dobriyan's avatar
      i2c-ixp4xx: fix ") != 0))" typo · 5e8721dc
      Alexey Dobriyan authored
      i2c_bit_add_bus() returns -E;
      -E != 0             =>      err = 1
      probe fails with positive error code
      Signed-off-by: default avatarAlexey Dobriyan <adobriyan@openvz.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      5e8721dc
  4. 22 Nov, 2006 1 commit
  5. 20 Nov, 2006 7 commits
    • Adrian Bunk's avatar
      Linux 2.6.16.33-rc1 · 6d44d60a
      Adrian Bunk authored
      6d44d60a
    • Benjamin Herrenschmidt's avatar
      POWERPC: Make alignment exception always check exception table · 371899a7
      Benjamin Herrenschmidt authored
      The alignment exception used to only check the exception table for
      -EFAULT, not for other errors. That opens an oops window if we can
      coerce the kernel into getting an alignment exception for other reasons
      in what would normally be a user-protected accessor, which can be done
      via some of the futex ops. This fixes it by always checking the
      exception tables.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      371899a7
    • Daniele Venzano's avatar
      Add new PHY to sis900 supported list · 70c50561
      Daniele Venzano authored
      This patch adds support for a new PHY to the sis900 driver.
      See also Bugzilla 6919.
      Signed-off-by: default avatarDaniele Venzano <venza@brownhat.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      70c50561
    • Artur Skawina's avatar
      sis900 adm7001 PHY support · 0379a9a1
      Artur Skawina authored
      this patch is required to get a SIS964 based motherboard ethernet working
      (FSC D1875) (picking the #1 transceiver, instead of the last one, in case
      no known ones were found might be a better default, and would have worked
      in this case too)
      Signed-off-by: default avatarArtur Skawina <art_k@o2.pl>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      0379a9a1
    • Michael-Luke Jones's avatar
      Old IDE, fix SATA detection for cabling · c61120c3
      Michael-Luke Jones authored
      This patch is identical to that introduced in
      1a1276e7 to the Linus' 2.6 development tree
      by Alan Cox.
      
      'This is based on the proposed patches flying around but also checks that
      the device in question is new enough to have word 93 rather thanb blindly
      assuming word 93 == 0 means SATA (see ATA-5, ATA-7)' -- Alan Cox
      
      Required for my SATA drive on an Asus Pundit-R to operate above 33MBps.
      Signed-off-by: default avatarMichael-Luke Jones <mlj28@cam.ac.uk>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      c61120c3
    • Diego Calleja's avatar
      Fix BeFS slab corruption · 2c8e2c9f
      Diego Calleja authored
      In bugzilla #6941, Jens Kilian reported:
      
      "The function befs_utf2nls (in fs/befs/linuxvfs.c) writes a 0 byte past the
      end of a block of memory allocated via kmalloc(), leading to memory
      corruption.  This happens only for filenames which are pure ASCII and a
      multiple of 4 bytes in length.  [...]
      
      Without DEBUG_SLAB, this leads to further corruption and hard lockups; I
      believe this is the bug which has made kernels later than 2.6.8 unusable
      for me.  (This must be due to changes in memory management, the bug has
      been in the BeFS driver since the time it was introduced (AFAICT).)
      
      Steps to reproduce:
      Create a directory (in BeOS, naturally :-) with files named, e.g.,
      "1", "22", "333", "4444", ...  Mount it in Linux and do an "ls" or "find""
      
      This patch implements the suggested fix. Credits to Jens Kilian for
      debugging the problem and finding the right fix.
      Signed-off-by: default avatarDiego Calleja <diegocg@gmail.com>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      2c8e2c9f
    • Adrian Bunk's avatar
      V4L/DVB: Saa7134: rename dmasound_{init,exit} · facabd61
      Adrian Bunk authored
      Two different exports with the same name are not a good idea:
      
      $ grep -r EXPORT_SYMBOL\(dmasound_init\) *
      drivers/media/video/saa7134/saa7134-core.c:EXPORT_SYMBOL(dmasound_init);
      sound/oss/dmasound/dmasound_core.c:EXPORT_SYMBOL(dmasound_init);
      $
      
      This patch renames the saa7134 dmasound_{init,exit} to
      saa7134_dmasound_{init,exit}.
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      facabd61
  6. 19 Nov, 2006 4 commits
  7. 17 Nov, 2006 4 commits
    • Dmitry Mishin's avatar
      Fix timer race in dst GC code · 9e9c7147
      Dmitry Mishin authored
      Replace add_timer() by mod_timer() in dst_run_gc
      in order to avoid BUG message.
      
         CPU1                            CPU2
      dst_run_gc()  entered           dst_run_gc() entered
      spin_lock(&dst_lock)                   .....
      del_timer(&dst_gc_timer)         fail to get lock
         ....                         mod_timer() <--- puts
                                                   timer back
                                                   to the list
      add_timer(&dst_gc_timer) <--- BUG because timer is in list already.
      
      Found during OpenVZ internal testing.
      
      At first we thought that it is OpenVZ specific as we
      added dst_run_gc(0) call in dst_dev_event(),
      but as Alexey pointed to me it is possible to trigger
      this condition in mainstream kernel.
      
      F.e. timer has fired on CPU2, but the handler was preeempted
      by an irq before dst_lock is tried.
      Meanwhile, someone on CPU1 adds an entry to gc list and
      starts the timer.
      If CPU2 was preempted long enough, this timer can expire
      simultaneously with resuming timer handler on CPU1, arriving
      exactly to the situation described.
      Signed-off-by: default avatarDmitry Mishin <dim@openvz.org>
      Signed-off-by: default avatarKirill Korotaev <dev@openvz.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      9e9c7147
    • Badari Pulavarty's avatar
      ext3 -nobh option causes oops · 770af3b4
      Badari Pulavarty authored
      For files other than IFREG, nobh option doesn't make sense.  Modifications
      to them are journalled and needs buffer heads to do that.  Without this
      patch, we get kernel oops in page_buffers().
      Signed-off-by: default avatarBadari Pulavarty <pbadari@us.ibm.com>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      770af3b4
    • Alexey Dobriyan's avatar
      ipmi_si_intf.c: fix "&& 0xff" typos · 39a2b41b
      Alexey Dobriyan authored
      Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      39a2b41b
    • Adrian Bunk's avatar
      security/seclvl.c: fix time wrap (CVE-2005-4352) · e6169b53
      Adrian Bunk authored
      initlvl=2 in seclvl gives the guarantee
      "Cannot decrement the system time".
      
      But it was possible to set the time to the maximum unixtime value
      (19 Jan 2038) resulting in a wrap to the minimum value.
      
      This patch fixes this by disallowing setting the time to any date
      after 2030 with initlvl=2.
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      e6169b53
  8. 16 Nov, 2006 1 commit
  9. 15 Nov, 2006 4 commits