1. 16 5月, 2011 3 次提交
  2. 09 2月, 2011 1 次提交
    • D
      net/caif: Fix dangling list pointer in freed object on error. · b2df5a84
      David S. Miller 提交于
      rtnl_link_ops->setup(), and the "setup" callback passed to alloc_netdev*(),
      cannot make state changes which need to be undone on failure.  There is
      no cleanup mechanism available at this point.
      
      So we have to add the caif private instance to the global list once we
      are sure that register_netdev() has succedded in ->newlink().
      
      Otherwise, if register_netdev() fails, the caller will invoke free_netdev()
      and we will have a reference to freed up memory on the chnl_net_list.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b2df5a84
  3. 11 1月, 2011 1 次提交
  4. 22 9月, 2010 1 次提交
  5. 07 9月, 2010 1 次提交
    • J
      net/caif: Use pr_fmt · b31fa5ba
      Joe Perches 提交于
      This patch standardizes caif message logging prefixes.
      
      Add #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__
      Add missing "\n"s to some logging messages
      Convert pr_warning to pr_warn
      
      This changes the logging message prefix from CAIF: to caif:
      for all uses but caif_socket.c and chnl_net.c.  Those now use
      their filename without extension.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b31fa5ba
  6. 21 6月, 2010 1 次提交
  7. 29 4月, 2010 1 次提交
  8. 31 3月, 2010 1 次提交