1. 21 Aug, 2017 3 commits
    • Christophe Jaillet's avatar
      net: ibm: emac: Fix some error handling path in 'emac_probe()' · 138b57f0
      Christophe Jaillet authored
      If 'irq_of_parse_and_map()' or 'of_address_to_resource()' fail, 'err' is
      known to be 0 at this point.
      So return -ENODEV instead in the first case and use 'of_iomap()' instead of
      the equivalent 'of_address_to_resource()/ioremap()' combinaison in the 2nd
      case.
      
      Doing so, the 'rsrc_regs' field of the 'emac_instance struct' becomes
      redundant and is removed.
      
      While at it, turn a 'err != 0' test into an equivalent 'err' to be more
      consistent.
      Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      138b57f0
    • Ganesh Goudar's avatar
      cxgb4/cxgbvf: Handle 32-bit fw port capabilities · c3168cab
      Ganesh Goudar authored
      Implement new 32-bit Firmware Port Capabilities in order to
      handle new speeds which couldn't be represented in the old 16-bit
      Firmware Port Capabilities values.
      
      Based on the original work of Casey Leedom <leedom@chelsio.com>
      Signed-off-by: default avatarGanesh Goudar <ganeshgr@chelsio.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c3168cab
    • Daniel Borkmann's avatar
      bpf: fix double free from dev_map_notification() · 274043c6
      Daniel Borkmann authored
      In the current code, dev_map_free() can still race with dev_map_notification().
      In dev_map_free(), we remove dtab from the list of dtabs after we purged
      all entries from it. However, we don't do xchg() with NULL or the like,
      so the entry at that point is still pointing to the device. If a unregister
      notification comes in at the same time, we therefore risk a double-free,
      since the pointer is still present in the map, and then pushed again to
      __dev_map_entry_free().
      
      All this is completely unnecessary. Just remove the dtab from the list
      right before the synchronize_rcu(), so all outstanding readers from the
      notifier list have finished by then, thus we don't need to deal with this
      corner case anymore and also wouldn't need to nullify dev entires. This is
      fine because we iterate over the map releasing all entries and therefore
      dev references anyway.
      
      Fixes: 4cc7b954 ("bpf: devmap fix mutex in rcu critical section")
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      274043c6
  2. 20 Aug, 2017 31 commits
  3. 19 Aug, 2017 6 commits