1. 17 7月, 2007 20 次提交
  2. 14 7月, 2007 1 次提交
  3. 13 7月, 2007 2 次提交
  4. 12 7月, 2007 2 次提交
    • T
      sysfs: kill unnecessary attribute->owner · 7b595756
      Tejun Heo 提交于
      sysfs is now completely out of driver/module lifetime game.  After
      deletion, a sysfs node doesn't access anything outside sysfs proper,
      so there's no reason to hold onto the attribute owners.  Note that
      often the wrong modules were accounted for as owners leading to
      accessing removed modules.
      
      This patch kills now unnecessary attribute->owner.  Note that with
      this change, userland holding a sysfs node does not prevent the
      backing module from being unloaded.
      
      For more info regarding lifetime rule cleanup, please read the
      following message.
      
        http://article.gmane.org/gmane.linux.kernel/510293
      
      (tweaked by Greg to not delete the field just yet, to make it easier to
      merge things properly.)
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7b595756
    • A
      PCI: Change all drivers to use pci_device->revision · 44c10138
      Auke Kok 提交于
      Instead of all drivers reading pci config space to get the revision
      ID, they can now use the pci_device->revision member.
      
      This exposes some issues where drivers where reading a word or a dword
      for the revision number, and adding useless error-handling around the
      read. Some drivers even just read it for no purpose of all.
      
      In devices where the revision ID is being copied over and used in what
      appears to be the equivalent of hotpath, I have left the copy code
      and the cached copy as not to influence the driver's performance.
      
      Compile tested with make all{yes,mod}config on x86_64 and i386.
      Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
      Acked-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      44c10138
  5. 11 7月, 2007 2 次提交
  6. 10 7月, 2007 3 次提交
  7. 28 6月, 2007 1 次提交
  8. 24 6月, 2007 2 次提交
    • I
      Char: stallion, fix oops during init with ISA cards · b08b5ad9
      Ingo Korb 提交于
      The stallion driver oopses while initializing ISA cards due to an
      uninitialized variable.  This patch changes the initialisation order to
      match the PCI code path.
      Signed-off-by: NIngo Korb <ml@akana.de>
      Acked-by: NJiri Slaby <jirislaby@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b08b5ad9
    • E
      console UTF-8 fixes (fix) · 1ed8a2b3
      Egmont Koblinger 提交于
      Recently my console UTF-8 patch went mainline.  Here is an additional patch
      that fixes two nasty issues and improves a third one, namely:
      
      1. My patch changed the behavior if a glyph is not found in the Unicode
         mapping table. Previously for Unicode values less than 256 or 512 the
         kernel tried to display the glyph from that position of the glyph table,
         which could lead to a different accented letter being displayed. I
         removed this fallback possibility and changed it to display the
         replacement symbol.
      
         As Behdad pointed out, some fonts (e.g. sun12x22 from the kbd package)
         lack Unicode mapping information, hence all you get is lots of question
         marks. Though theoretically it's actually a user-space bug (the font
         should be fixed), Behdad and I both believe that it'd be good to work
         around in the kernel by re-introducing the fallback solution for ASCII
         characters only. This sounds a quite reasonable decision, since all fonts
         ship the ASCII characters in the first 128 positions. This way users
         won't be surprised by lots of question marks just because s/he issued a
         not-so-perfectly parameterized setfont command. As this fallback is only
         re-introduced for code points below 128, you still won't see an accented
         letter replaced by another, but at least you'll always get the English
         letters right.
      
      2. My patch introduced "question mark with inverted color attributes" as a
         last resort fallback glyph. Though it perfectly works on VGA console, on
         framebuffer you may end up with question marks that are highlighed but
         shouldn't be, and normal characters that are accidentally highlighed.
         This is caused by missing FLUSHes when changing the color attribute.
      
      3. I've updated the table of double-width character based on Markus's
         updated version. Only ten new code poings (one interval) is added.
      Signed-off-by: NEgmont Koblinger <egmont@uhulinux.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1ed8a2b3
  9. 22 6月, 2007 1 次提交
  10. 17 6月, 2007 3 次提交
    • M
      random: fix output buffer folding · 679ce0ac
      Matt Mackall 提交于
      (As reported by linux@horizon.com)
      
      Folding is done to minimize the theoretical possibility of systematic
      weakness in the particular bits of the SHA1 hash output.  The result of
      this bug is that 16 out of 80 bits are un-folded.  Without a major new
      vulnerability being found in SHA1, this is harmless, but still worth
      fixing.
      Signed-off-by: NMatt Mackall <mpm@selenic.com>
      Cc: <linux@horizon.com>
      Cc: Theodore Ts'o <tytso@mit.edu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      679ce0ac
    • P
      tty: restore locked ioctl file op · 38ad2ed0
      Paul Fulghum 提交于
      Restore tty locked ioctl handler which was replaced with
      an unlocked ioctl handler in hung_up_tty_fops by the patch:
      
      commit e10cc1df
      Author: Paul Fulghum <paulkf@microgate.com>
      Date:   Thu May 10 22:22:50 2007 -0700
      
          tty: add compat_ioctl
      
      This was reported in:
      [Bug 8473] New: Oops: 0010 [1] SMP
      
      The bug is caused by switching to hung_up_tty_fops in do_tty_hangup.  An
      ioctl call can be waiting on BLK after testing for existence of the locked
      ioctl handler in the normal tty fops, but before calling the locked ioctl
      handler.  If a hangup occurs at that point, the locked ioctl fop is NULL
      and an oops occurs.
      
      (akpm: we can remove my debugging code from do_ioctl() now, but it'll be OK to
      do that for 2.6.23)
      Signed-off-by: NPaul Fulghum <paulkf@microgate.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      38ad2ed0
    • D
      fix radeon setparam on 32/64 systems, harder. · f4d27817
      David Woodhouse 提交于
      Commit 9b01bd5b introduced a
      compat_ioctl handler for RADEON_SETPARAM, the sole purpose of which was
      to handle the fact that on i386, alignof(uint64_t)==4.
      
      Unfortunately, this handler was installed for _all_ 64-bit
      architectures, instead of only x86_64 and ia64.  And thus it breaks
      32-bit compatibility on every other arch, where 64-bit integers are
      aligned to 8 bytes in 32-bit mode just the same as in 64-bit mode.
      
      Arnd has a cunning plan to use 'compat_u64' with appropriate alignment
      attributes according to the 32-bit ABI, but for now let's just make the
      compat_radeon_cp_setparam routine entirely disappear on 64-bit machines
      whose 32-bit compat support isn't for i386.  It would be a no-op with
      compat_u64 anyway.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Dave Airlie <airlied@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f4d27817
  11. 15 6月, 2007 1 次提交
  12. 10 6月, 2007 2 次提交