1. 25 4月, 2007 2 次提交
    • N
      sis900: Allocate rx replacement buffer before rx operation · b748d9e3
      Neil Horman 提交于
      	The sis900 driver appears to have a bug in which the receive routine
      passes the skbuff holding the received frame to the network stack before
      refilling the buffer in the rx ring.  If a new skbuff cannot be allocated, the
      driver simply leaves a hole in the rx ring, which causes the driver to stop
      receiving frames and become non-recoverable without an rmmod/insmod according to
      reporters.  This patch reverses that order, attempting to allocate a replacement
      buffer first, and receiving the new frame only if one can be allocated.  If no
      skbuff can be allocated, the current skbuf in the rx ring is recycled, dropping
      the current frame, but keeping the NIC operational.
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      b748d9e3
    • A
      [netdrvr] depca: handle platform_device_add() failure · d91c088b
      Andrea Righi 提交于
      The following patch fixes a kernel bug in depca_platform_probe().
      
      We don't use a dynamic pointer for pldev->dev.platform_data, so it seems
      that the correct way to proceed if platform_device_add(pldev) fails is
      to explicitly set the pldev->dev.platform_data pointer to NULL, before
      calling the platform_device_put(pldev), or it will be kfree'ed by
      platform_device_release().
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      d91c088b
  2. 24 4月, 2007 25 次提交
  3. 22 4月, 2007 4 次提交
  4. 21 4月, 2007 9 次提交