1. 29 8月, 2019 2 次提交
  2. 28 8月, 2019 1 次提交
    • M
      Add genphy_c45_config_aneg() function to phy-c45.c · 94acaeb5
      Marco Hartmann 提交于
      Commit 34786005 ("net: phy: prevent PHYs w/o Clause 22 regs from calling
      genphy_config_aneg") introduced a check that aborts phy_config_aneg()
      if the phy is a C45 phy.
      This causes phy_state_machine() to call phy_error() so that the phy
      ends up in PHY_HALTED state.
      
      Instead of returning -EOPNOTSUPP, call genphy_c45_config_aneg()
      (analogous to the C22 case) so that the state machine can run
      correctly.
      
      genphy_c45_config_aneg() closely resembles mv3310_config_aneg()
      in drivers/net/phy/marvell10g.c, excluding vendor specific
      configurations for 1000BaseT.
      
      Fixes: 22b56e82 ("net: phy: replace genphy_10g_driver with genphy_c45_driver")
      Signed-off-by: NMarco Hartmann <marco.hartmann@nxp.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      94acaeb5
  3. 26 8月, 2019 1 次提交
  4. 24 8月, 2019 1 次提交
  5. 23 8月, 2019 6 次提交
  6. 22 8月, 2019 3 次提交
  7. 20 8月, 2019 7 次提交
  8. 19 8月, 2019 14 次提交
  9. 17 8月, 2019 1 次提交
    • W
      lan78xx: Fix memory leaks · b9cbf8a6
      Wenwen Wang 提交于
      In lan78xx_probe(), a new urb is allocated through usb_alloc_urb() and
      saved to 'dev->urb_intr'. However, in the following execution, if an error
      occurs, 'dev->urb_intr' is not deallocated, leading to memory leaks. To fix
      this issue, invoke usb_free_urb() to free the allocated urb before
      returning from the function.
      Signed-off-by: NWenwen Wang <wenwen@cs.uga.edu>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b9cbf8a6
  10. 16 8月, 2019 4 次提交