1. 01 Aug, 2008 37 commits
  2. 30 Jul, 2008 3 commits
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus · 8b6d8c59
      Linus Torvalds authored
      * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
        [MIPS] Cobalt: update defconfig
        [MIPS] kgdb: add arch support for the kernel's kgdb core
        [MIPS] kgdb: Remove existing implementation
        [MIPS] TXx9: Kconfig cleanup
        [MIPS] TXx9: Kill unused txx927.h
        [MIPS] TXx9: Support early_printk
        [MIPS] TXx9: Unify serial_txx9 setup
        [MIPS] TXx9: Random cleanup
        [MIPS] TXx9: Make tx4938-specific code more independent
        [MIPS] TXx9: Make tx3927-specific code more independent
        [MIPS] TXx9: Cleanup watchdog
        [MIPS] TXx9: Cleanup restart/halt/power_off
        [MIPS] TXx9: PCI error handling
        [MIPS] TXx9: Add some pci options
        [MIPS] Introduce pcibios_plat_setup
        [MIPS] TXx9: PCI fixes for tx3927/tx4927
        [MIPS] TXx9: Fix JMR3927 irq numbers
        [MIPS] RB532: Flags are unsigned long
        [MIPS] Initialization of Alchemy boards
        [MIPS] tlb-r4k: Nuke broken paranoia error test.
      8b6d8c59
    • Linus Torvalds's avatar
      Fix off-by-one error in iov_iter_advance() · 94ad374a
      Linus Torvalds authored
      The iov_iter_advance() function would look at the iov->iov_len entry
      even though it might have iterated over the whole array, and iov was
      pointing past the end.  This would cause DEBUG_PAGEALLOC to trigger a
      kernel page fault if the allocation was at the end of a page, and the
      next page was unallocated.
      
      The quick fix is to just change the order of the tests: check that there
      is any iovec data left before we check the iov entry itself.
      
      Thanks to Alexey Dobriyan for finding this case, and testing the fix.
      Reported-and-tested-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
      Cc: Nick Piggin <npiggin@suse.de>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: <stable@kernel.org> [2.6.25.x, 2.6.26.x]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      94ad374a
    • Linus Torvalds's avatar
      romfs_readpage: don't report errors for pages beyond i_size · 0056e65f
      Linus Torvalds authored
      We zero-fill them like we are supposed to, and that's all fine.  It's
      only an error if the 'romfs_copyfrom()' routine isn't able to fill the
      data that is supposed to be there.
      
      Most of the patch is really just re-organizing the code a bit, and using
      separate variables for the error value and for how much of the page we
      actually filled from the filesystem.
      Reported-and-tested-by: default avatarChris Fester <cfester@wms.com>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Matt Waddel <matt.waddel@freescale.com>
      Cc: Greg Ungerer <gerg@snapgear.com>
      Signed-of-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0056e65f