1. 27 3月, 2020 4 次提交
    • M
      net: ks8851-ml: Fix IO operations, again · 8262e6f9
      Marek Vasut 提交于
      This patch reverts 58292104 ("net: ks8851-ml: Fix 16-bit IO operation")
      and edacb098 ("net: ks8851-ml: Fix 16-bit data access"), because it
      turns out these were only necessary due to buggy hardware. This patch adds
      a check for such a buggy hardware to prevent any such mistakes again.
      
      While working further on the KS8851 driver, it came to light that the
      KS8851-16MLL is capable of switching bus endianness by a hardware strap,
      EESK pin. If this strap is incorrect, the IO accesses require such endian
      swapping as is being reverted by this patch. Such swapping also impacts
      the performance significantly.
      
      Hence, in addition to removing it, detect that the hardware is broken,
      report to user, and fail to bind with such hardware.
      
      Fixes: 58292104 ("net: ks8851-ml: Fix 16-bit IO operation")
      Fixes: edacb098 ("net: ks8851-ml: Fix 16-bit data access")
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Lukas Wunner <lukas@wunner.de>
      Cc: Petr Stetiar <ynezz@true.cz>
      Cc: YueHaibing <yuehaibing@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8262e6f9
    • D
      Merge tag 'mac80211-for-net-2020-03-26' of... · 328f5bb9
      David S. Miller 提交于
      Merge tag 'mac80211-for-net-2020-03-26' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
      
      Johannes Berg says:
      
      ====================
      We have the following fixes:
       * drop data packets if there's no key for them anymore, after
         there had been one, to avoid sending them in clear when
         hostapd removes the key before it removes the station and
         the packets are still queued
       * check port authorization again after dequeue, to avoid
         sending packets if the station is no longer authorized
       * actually remove the authorization flag before the key so
         packets are also dropped properly because of this
       * fix nl80211 control port packet tagging to handle them as
         packets allowed to go out without encryption
       * fix NL80211_ATTR_CHANNEL_WIDTH outgoing netlink attribute
         width (should be 32 bits, not 8)
       * don't WARN in a CSA scenario that happens on some APs
       * fix HE spatial reuse element size calculation
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      328f5bb9
    • I
      mlxsw: spectrum_mr: Fix list iteration in error path · f6bf1baf
      Ido Schimmel 提交于
      list_for_each_entry_from_reverse() iterates backwards over the list from
      the current position, but in the error path we should start from the
      previous position.
      
      Fix this by using list_for_each_entry_continue_reverse() instead.
      
      This suppresses the following error from coccinelle:
      
      drivers/net/ethernet/mellanox/mlxsw//spectrum_mr.c:655:34-38: ERROR:
      invalid reference to the index variable of the iterator on line 636
      
      Fixes: c011ec1b ("mlxsw: spectrum: Add the multicast routing offloading logic")
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Reviewed-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f6bf1baf
    • X
      qlcnic: Fix bad kzalloc null test · bcaeb886
      Xu Wang 提交于
      In qlcnic_83xx_get_reset_instruction_template, the variable
      of null test is bad, so correct it.
      Signed-off-by: NXu Wang <vulab@iscas.ac.cn>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bcaeb886
  2. 26 3月, 2020 13 次提交
  3. 25 3月, 2020 23 次提交