1. 01 11月, 2007 2 次提交
    • K
      firewire: Fix pci resume to not pass in a __be32 config rom. · 0bd243c4
      Kristian Høgsberg 提交于
      The ohci_enable() function shared between pci_probe and pci_resume
      takes a host endian config rom, but ohci->config_rom is __be32.  This
      sets up the config rom in the wrong endian on little endian machine,
      specifically, BusOptions will be initialized to a 0 max receive size.
      
      This patch changes the way we reuse the config rom so that we avoid
      this problem.
      Signed-off-by: NKristian Hoegsberg <krh@redhat.com>
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      0bd243c4
    • L
      Remove broken ptrace() special-case code from file mapping · 5307cc1a
      Linus Torvalds 提交于
      The kernel has for random historical reasons allowed ptrace() accesses
      to access (and insert) pages into the page cache above the size of the
      file.
      
      However, Nick broke that by mistake when doing the new fault handling in
      commit 54cb8821 ("mm: merge populate and
      nopage into fault (fixes nonlinear)".  The breakage caused a hang with
      gdb when trying to access the invalid page.
      
      The ptrace "feature" really isn't worth resurrecting, since it really is
      wrong both from a portability _and_ from an internal page cache validity
      standpoint.  So this removes those old broken remnants, and fixes the
      ptrace() hang in the process.
      
      Noticed and bisected by Duane Griffin, who also supplied a test-case
      (quoth Nick: "Well that's probably the best bug report I've ever had,
      thanks Duane!").
      
      Cc: Duane Griffin <duaneg@dghda.com>
      Acked-by: NNick Piggin <npiggin@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5307cc1a
  2. 31 10月, 2007 38 次提交