1. 21 11月, 2018 1 次提交
  2. 18 11月, 2018 1 次提交
  3. 16 11月, 2018 1 次提交
  4. 10 11月, 2018 3 次提交
  5. 09 11月, 2018 1 次提交
  6. 19 10月, 2018 1 次提交
  7. 17 10月, 2018 1 次提交
  8. 12 10月, 2018 1 次提交
    • A
      cxgb4: fix thermal configuration dependencies · e70a57fa
      Arnd Bergmann 提交于
      With CONFIG_THERMAL=m, we get a build error:
      
      drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.c: In function 'cxgb4_thermal_get_trip_type':
      drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.c:48:11: error: 'struct adapter' has no member named 'ch_thermal'
      
      Once that is fixed by using IS_ENABLED() checks, we get a link error
      against the thermal subsystem when cxgb4 is built-in:
      
      drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.o: In function `cxgb4_thermal_init':
      cxgb4_thermal.c:(.text+0x180): undefined reference to `thermal_zone_device_register'
      drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.o: In function `cxgb4_thermal_remove':
      cxgb4_thermal.c:(.text+0x1e0): undefined reference to `thermal_zone_device_unregister'
      
      Finally, since CONFIG_THERMAL can be =m, the Makefile fails to pick up the
      extra file into built-in.a, and we get another link failure against the
      cxgb4_thermal_init/cxgb4_thermal_remove files, so the Makefile has to
      be adapted as well to work for both CONFIG_THERMAL=y and =m.
      
      Fixes: b1871915 ("cxgb4: Add thermal zone support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e70a57fa
  9. 10 10月, 2018 1 次提交
  10. 06 10月, 2018 2 次提交
    • W
      net: cxgb3_main: fix a missing-check bug · 2c05d888
      Wenwen Wang 提交于
      In cxgb_extension_ioctl(), the command of the ioctl is firstly copied from
      the user-space buffer 'useraddr' to 'cmd' and checked through the
      switch statement. If the command is not as expected, an error code
      EOPNOTSUPP is returned. In the following execution, i.e., the cases of the
      switch statement, the whole buffer of 'useraddr' is copied again to a
      specific data structure, according to what kind of command is requested.
      However, after the second copy, there is no re-check on the newly-copied
      command. Given that the buffer 'useraddr' is in the user space, a malicious
      user can race to change the command between the two copies. By doing so,
      the attacker can supply malicious data to the kernel and cause undefined
      behavior.
      
      This patch adds a re-check in each case of the switch statement if there is
      a second copy in that case, to re-check whether the command obtained in the
      second copy is the same as the one in the first copy. If not, an error code
      EINVAL is returned.
      Signed-off-by: NWenwen Wang <wang6495@umn.edu>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2c05d888
    • G
      cxgb4: use FW_PORT_ACTION_L1_CFG32 for 32 bit capability · a657dbf6
      Ganesh Goudar 提交于
      when 32 bit port capability is in use, use FW_PORT_ACTION_L1_CFG32
      rather than FW_PORT_ACTION_L1_CFG.
      Signed-off-by: NCasey Leedom <leedom@chelsio.com>
      Signed-off-by: NGanesh Goudar <ganeshgr@chelsio.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a657dbf6
  11. 04 10月, 2018 1 次提交
  12. 03 10月, 2018 3 次提交
    • N
      cxgb4: Use proper enum in IEEE_FAUX_SYNC · 258b6d14
      Nathan Chancellor 提交于
      Clang warns when one enumerated type is implicitly converted to another.
      
      drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c:390:4: warning: implicit
      conversion from enumeration type 'enum cxgb4_dcb_state' to different
      enumeration type 'enum cxgb4_dcb_state_input' [-Wenum-conversion]
                              IEEE_FAUX_SYNC(dev, dcb);
                              ^~~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.h:70:10: note: expanded
      from macro 'IEEE_FAUX_SYNC'
                                                  CXGB4_DCB_STATE_FW_ALLSYNCED);
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      Use the equivalent value of the expected type to silence Clang while
      resulting in no functional change.
      
      CXGB4_DCB_STATE_FW_ALLSYNCED = CXGB4_DCB_INPUT_FW_ALLSYNCED = 3
      Signed-off-by: NNathan Chancellor <natechancellor@gmail.com>
      Reviewed-by: NNick Desaulniers <ndesaulniers@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      258b6d14
    • N
      cxgb4: Use proper enum in cxgb4_dcb_handle_fw_update · 3b0b8f0d
      Nathan Chancellor 提交于
      Clang warns when one enumerated type is implicitly converted to another.
      
      drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c:303:7: warning: implicit
      conversion from enumeration type 'enum cxgb4_dcb_state' to different
      enumeration type 'enum cxgb4_dcb_state_input' [-Wenum-conversion]
                               ? CXGB4_DCB_STATE_FW_ALLSYNCED
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c:304:7: warning: implicit
      conversion from enumeration type 'enum cxgb4_dcb_state' to different
      enumeration type 'enum cxgb4_dcb_state_input' [-Wenum-conversion]
                               : CXGB4_DCB_STATE_FW_INCOMPLETE);
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      2 warnings generated.
      
      Use the equivalent value of the expected type to silence Clang while
      resulting in no functional change.
      
      CXGB4_DCB_STATE_FW_INCOMPLETE = CXGB4_DCB_INPUT_FW_INCOMPLETE = 2
      CXGB4_DCB_STATE_FW_ALLSYNCED = CXGB4_DCB_INPUT_FW_ALLSYNCED = 3
      Signed-off-by: NNathan Chancellor <natechancellor@gmail.com>
      Reviewed-by: NNick Desaulniers <ndesaulniers@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3b0b8f0d
    • O
      PCI/AER: Remove pci_cleanup_aer_uncorrect_error_status() calls · 62b36c3e
      Oza Pawandeep 提交于
      After bfcb79fc ("PCI/ERR: Run error recovery callbacks for all affected
      devices"), AER errors are always cleared by the PCI core and drivers don't
      need to do it themselves.
      
      Remove calls to pci_cleanup_aer_uncorrect_error_status() from device
      driver error recovery functions.
      Signed-off-by: NOza Pawandeep <poza@codeaurora.org>
      [bhelgaas: changelog, remove PCI core changes, remove unused variables]
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      62b36c3e
  13. 22 9月, 2018 2 次提交
  14. 19 9月, 2018 1 次提交
  15. 18 9月, 2018 1 次提交
  16. 14 9月, 2018 3 次提交
  17. 11 9月, 2018 2 次提交
  18. 08 9月, 2018 1 次提交
  19. 04 9月, 2018 2 次提交
  20. 22 8月, 2018 1 次提交
  21. 15 8月, 2018 1 次提交
  22. 14 8月, 2018 1 次提交
  23. 11 8月, 2018 2 次提交
  24. 10 8月, 2018 1 次提交
  25. 08 8月, 2018 4 次提交
  26. 02 8月, 2018 1 次提交