ChangeSet 1.2199.14.7, 2005/03/22 20:07:41-08:00, [EMAIL PROTECTED]

        [IPV4]: Fix swapped memset args in multipath_wrandom.c
        
        Signed-off-by: Dave Jones <[EMAIL PROTECTED]>
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



 multipath_wrandom.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/net/ipv4/multipath_wrandom.c b/net/ipv4/multipath_wrandom.c
--- a/net/ipv4/multipath_wrandom.c      2005-03-26 17:18:43 -08:00
+++ b/net/ipv4/multipath_wrandom.c      2005-03-26 17:18:43 -08:00
@@ -248,7 +248,7 @@
 
                target_route->gw = nh->nh_gw;
                target_route->oif = nh->nh_oif;
-               memset(&target_route->rcu, sizeof(struct rcu_head), 0);
+               memset(&target_route->rcu, 0, sizeof(struct rcu_head));
                INIT_LIST_HEAD(&target_route->dests);
 
                list_add_rcu(&target_route->list, &state[state_idx].head);
@@ -271,7 +271,7 @@
                target_dest->network = network;
                target_dest->netmask = netmask;
                target_dest->prefixlen = prefixlen;
-               memset(&target_dest->rcu, sizeof(struct rcu_head), 0);
+               memset(&target_dest->rcu, 0, sizeof(struct rcu_head));
 
                list_add_rcu(&target_dest->list, &target_route->dests);
        }
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to