1. 31 Jan, 2009 8 commits
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus · c5e18af9
      Linus Torvalds authored
      * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (27 commits)
        MIPS: Alchemy: time.c build fix
        MIPS: RB532: Export rb532_gpio_set_func()
        MIPS: RB532: Update headers
        MIPS: RB532: Simplify dev3 init
        MIPS: RB532: Remove {get,set}_434_reg()
        MIPS: RB532: Move dev3 init code to devices.c
        MIPS: RB532: Fix set_latch_u5()
        MIPS: RB532: Fix init of rb532_dev3_ctl_res
        MIPS: RB532: Use driver_data instead of platform_data
        MIPS: RB532: Detect uart type, add platform device
        MIPS: RB532: remove useless CF GPIO initialisation
        MIPS: RB532: Auto disable GPIO alternate function
        MIPS: RB532: Add set_type() function to IRQ struct.
        MIPS: RC32434: Define io_map_base for PCI controller
        MIPS: RB532: Fix bit swapping in rb532_set_bit()
        MIPS: Use hardware watchpoints on all R1 and R2 CPUs.
        MIPS: Read watch registers with interrupts disabled.
        MIPS: Fix a typo in watchpoint register structure.
        MIPS: TXx9: Add support for TX4939 internal RTC
        MIPS: R2: Fix broken installation of cache error handler.
        ...
      c5e18af9
    • Mikulas Patocka's avatar
      Fix memory corruption in console selection · 878b8619
      Mikulas Patocka authored
      Fix an off-by-two memory error in console selection.
      
      The loop below goes from sel_start to sel_end (inclusive), so it writes
      one more character.  This one more character was added to the allocated
      size (+1), but it was not multiplied by an UTF-8 multiplier.
      
      This patch fixes a memory corruption when UTF-8 console is used and the
      user selects a few characters, all of them 3-byte in UTF-8 (for example
      a frame line).
      
      When memory redzones are enabled, a redzone corruption is reported.
      When they are not enabled, trashing of random memory occurs.
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      878b8619
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · f984d024
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
        igb: fix link reporting when using sgmii
        igb: prevent skb_over panic w/ mtu smaller than 1K
        igb: Fix DCA errors and do not use context index for 82576
        ipv6: compile fix for ip6mr.c
        packet: Avoid lock_sock in mmap handler
        sfc: Replace stats_enabled flag with a disable count
        sfc: SFX7101/SFT9001: Fix AN advertisements
        sfc: SFT9001: Always enable XNP exchange on SFT9001 rev B
        sfc: Update board info for hardware monitor on SFN4111T-R5 and later
        sfc: Test for PHYXS faults whenever we cannot test link state bits
        sfc: Reinitialise the PHY completely in case of a PHY or NIC reset
        sfc: Fix post-reset MAC selection
        sfc: SFN4111T: Fix GPIO sharing between I2C and FLASH_CFG_1
        sfc: SFT9001: Fix speed reporting in 1G PHY loopback
        sfc: SFX7101: Remove workaround for bad link training
        sfc: SFT9001: Enable robust link training
        sky2: fix hard hang with netconsoling and iface going up
      f984d024
    • Linus Torvalds's avatar
      Stop playing silly games with the VM_ACCOUNT flag · fc8744ad
      Linus Torvalds authored
      The mmap_region() code would temporarily set the VM_ACCOUNT flag for
      anonymous shared mappings just to inform shmem_zero_setup() that it
      should enable accounting for the resulting shm object.  It would then
      clear the flag after calling ->mmap (for the /dev/zero case) or doing
      shmem_zero_setup() (for the MAP_ANON case).
      
      This just resulted in vma merge issues, but also made for just
      unnecessary confusion.  Use the already-existing VM_NORESERVE flag for
      this instead, and let shmem_{zero|file}_setup() just figure it out from
      that.
      
      This also happens to make it obvious that the new DRI2 GEM layer uses a
      non-reserving backing store for its object allocation - which is quite
      possibly not intentional.  But since I didn't want to change semantics
      in this patch, I left it alone, and just updated the caller to use the
      new flag semantics.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fc8744ad
    • Alexander Duyck's avatar
      igb: fix link reporting when using sgmii · 5d0932a5
      Alexander Duyck authored
      When using sgmii the link was not being properly passed up to the driver
      from the underlying link management functions.  This change corrects it so
      that get_link_status is cleared when a link has been found.
      Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5d0932a5
    • Alexander Duyck's avatar
      igb: prevent skb_over panic w/ mtu smaller than 1K · ec54d7d6
      Alexander Duyck authored
      A panic has been observed with frame sizes smaller than 1K.  This has been
      root caused to the hardware spanning larger frames across multiple buffers
      and then reporting the original frame size in the first descriptor.  To
      prevent this we can enable set the LPE bit which in turn will restrict
      packet sizes to those set in the RLPML register.
      Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ec54d7d6
    • Alexander Duyck's avatar
      igb: Fix DCA errors and do not use context index for 82576 · bbd98fe4
      Alexander Duyck authored
      82576 was being incorrectly flagged as needing a context index.  It does not as
      each ring has it's own table of 2 contexts.
      
      Driver was registering after registering the driver instead of the other way around.
      Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@intel.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bbd98fe4
    • Dave Jones's avatar
      ipv6: compile fix for ip6mr.c · 5d6e430d
      Dave Jones authored
      net/ipv6/ip6mr.c: In function 'pim6_rcv':
      net/ipv6/ip6mr.c:368: error: implicit declaration of function 'csum_ipv6_magic'
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5d6e430d
  2. 30 Jan, 2009 32 commits