1. 07 5月, 2008 18 次提交
  2. 06 5月, 2008 4 次提交
  3. 05 5月, 2008 10 次提交
  4. 04 5月, 2008 5 次提交
    • D
      niu: Fix probing regression for maramba on-board chips. · be0c007a
      David S. Miller 提交于
      Changeset 7f7c4072 ("niu: Determine
      the # of ports from the card's VPD data") caused maramba on-board
      NIU ports to stop probing properly.
      
      The old code had a fallback that would use a num_ports value of
      4 if all the probing methods failed, but that was removed.
      
      This restores the fallback of 4 ports, to get things working
      again.
      
      Bump driver version and release date.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      be0c007a
    • D
      lapbeth: Release ->ethdev when unregistering device. · e544ff00
      David S. Miller 提交于
      Otherwise it leaks forever.
      
      Based upon a report by Roland <devzero@web.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e544ff00
    • M
      xfrm: convert empty xfrm_audit_* macros to functions · 41fef0ee
      Marcin Slusarz 提交于
      it removes these warnings when CONFIG_AUDITSYSCALL is unset:
      
      net/xfrm/xfrm_user.c: In function 'xfrm_add_sa':
      net/xfrm/xfrm_user.c:412: warning: unused variable 'sid'
      net/xfrm/xfrm_user.c:411: warning: unused variable 'sessionid'
      net/xfrm/xfrm_user.c:410: warning: unused variable 'loginuid'
      net/xfrm/xfrm_user.c: In function 'xfrm_del_sa':
      net/xfrm/xfrm_user.c:485: warning: unused variable 'sid'
      net/xfrm/xfrm_user.c:484: warning: unused variable 'sessionid'
      net/xfrm/xfrm_user.c:483: warning: unused variable 'loginuid'
      net/xfrm/xfrm_user.c: In function 'xfrm_add_policy':
      net/xfrm/xfrm_user.c:1132: warning: unused variable 'sid'
      net/xfrm/xfrm_user.c:1131: warning: unused variable 'sessionid'
      net/xfrm/xfrm_user.c:1130: warning: unused variable 'loginuid'
      net/xfrm/xfrm_user.c: In function 'xfrm_get_policy':
      net/xfrm/xfrm_user.c:1382: warning: unused variable 'sid'
      net/xfrm/xfrm_user.c:1381: warning: unused variable 'sessionid'
      net/xfrm/xfrm_user.c:1380: warning: unused variable 'loginuid'
      net/xfrm/xfrm_user.c: In function 'xfrm_add_pol_expire':
      net/xfrm/xfrm_user.c:1620: warning: unused variable 'sid'
      net/xfrm/xfrm_user.c:1619: warning: unused variable 'sessionid'
      net/xfrm/xfrm_user.c:1618: warning: unused variable 'loginuid'
      net/xfrm/xfrm_user.c: In function 'xfrm_add_sa_expire':
      net/xfrm/xfrm_user.c:1658: warning: unused variable 'sid'
      net/xfrm/xfrm_user.c:1657: warning: unused variable 'sessionid'
      net/xfrm/xfrm_user.c:1656: warning: unused variable 'loginuid'
      Signed-off-by: NMarcin Slusarz <marcin.slusarz@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      41fef0ee
    • J
      net: Fix useless comment reference loop. · c8005785
      Johannes Berg 提交于
      include/linux/skbuff.h says:
              /* These elements must be at the end, see alloc_skb() for details.  */
      
      net/core/skbuff.c says:
      	* See comment in sk_buff definition, just before the 'tail' member
      
      This patch contains my guess as to the actual reason rather than a
      dead comment reference loop.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c8005785
    • J
      sch_htb: remove from event queue in htb_parent_to_leaf() · 3ba08b00
      Jarek Poplawski 提交于
      There is lack of removing a class from the event queue while changing
      from parent to leaf which can cause corruption of this rb tree. This
      patch fixes a bug introduced by my patch: "sch_htb: turn intermediate
      classes into leaves" commit: 160d5e10.
      
      Many thanks to Jan 'yanek' Bortl for finding a way to reproduce this
      rare bug and narrowing the test case, which made possible proper
      diagnosing.
      
      This patch is recommended for all kernels starting from 2.6.20.
      Reported-and-tested-by: NJan 'yanek' Bortl <yanek@ya.bofh.cz>
      Signed-off-by: NJarek Poplawski <jarkao2@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3ba08b00
  5. 03 5月, 2008 3 次提交
    • B
      rose: Wrong list_lock argument in rose_node seqops · f37f2c62
      Bernard Pidoux 提交于
      In rose_node_start() as well as in rose_node_stop() __acquires() and
      spin_lock_bh() were wrongly passing rose_neigh_list_lock instead of
      rose_node_list_lock arguments.
      Signed-off-by: NBernard Pidoux <f6bvp@amsat.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f37f2c62
    • D
      netns: Fix reassembly timer to use the right namespace · 4ac2ccd0
      Daniel Lezcano 提交于
      This trivial fix retrieves the network namespace from frag queue
      and use it to get the network device in the right namespace.
      Signed-off-by: NDaniel Lezcano <dlezcano@fr.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4ac2ccd0
    • D
      netns: Fix device renaming for sysfs · aaf8cdc3
      Daniel Lezcano 提交于
      When a netdev is moved across namespaces with the
      'dev_change_net_namespace' function, the 'device_rename' function is
      used to fixup kobject and refresh the sysfs tree. The device_rename
      function will call kobject_rename and this one will check if there is
      an object with the same name and this is the case because we are
      renaming the object with the same name.
      
      The use of 'device_rename' seems for me wrong because we usually don't
      rename it but just move it across namespaces. As we just want to do a
      mini "netdev_[un]register", IMO the functions
      'netdev_[un]register_kobject' should be used instead, like an usual
      network device [un]registering.
      
      This patch replace device_rename by netdev_unregister_kobject,
      followed by netdev_register_kobject.
      
      The netdev_register_kobject will call device_initialize and will raise
      a warning indicating the device was already initialized. In order to
      fix that, I split the device initialization into a separate function
      and use it together with 'netdev_register_kobject' into
      register_netdevice. So we can safely call 'netdev_register_kobject' in
      'dev_change_net_namespace'.
      
      This fix will allow to properly use the sysfs per namespace which is
      coming from -mm tree.
      Signed-off-by: NDaniel Lezcano <dlezcano@fr.ibm.com>
      Acked-by: NBenjamin Thery <benjamin.thery@bull.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      aaf8cdc3