1. 22 1月, 2009 30 次提交
  2. 21 1月, 2009 8 次提交
  3. 20 1月, 2009 2 次提交
    • I
      wimax/i2400m: error paths that need to free an skb should use kfree_skb() · f4895b8b
      Inaky Perez-Gonzalez 提交于
      Roel Kluin reported a bug in two error paths where skbs were wrongly
      being freed using kfree(). He provided a fix where it was replaced to
      kfree_skb(), as it should be.
      
      However, in i2400mu_rx(), the error path was missing returning an
      indication of the failure. Changed to reset rx_skb to NULL and return
      it to the caller, i2400mu_rxd(). It will be treated as a transient
      error and just ignore the packet.
      
      Depending on the buffering conditions inside the device, the data
      packet might be dropped or the device will signal the host again for
      data-ready-to-read and the host will retry.
      Signed-off-by: NInaky Perez-Gonzalez <inaky@linux.intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f4895b8b
    • G
      mv643xx_eth: prevent interrupt storm on ifconfig down · fe65e704
      Gabriel Paubert 提交于
      Contrary to what the docs say, the 'extended interrupt cause' bit in
      the interrupt cause register (bit 1) appears to not be maskable on at
      least some of the mv643xx_eth platforms, making writing zeroes to the
      interrupt mask register but not the extended interrupt mask register
      insufficient to stop interrupts from occuring.  Therefore, also write
      zeroes to the extended interrupt mask register when shutting down the
      port.
      
      This fixes the interrupt storm seen on the Pegasos board when shutting
      down the interface.
      Signed-off-by: NLennert Buytenhek <buytenh@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fe65e704