netdev
[Top] [All Lists]

[PATCH][ATM]: [lec] lec_push() races with vcc->proto_data

To: davem@xxxxxxxxxx
Subject: [PATCH][ATM]: [lec] lec_push() races with vcc->proto_data
From: "chas williams (contractor)" <chas@xxxxxxxxxxxxxxxx>
Date: Wed, 24 Mar 2004 18:12:22 -0500
Cc: netdev@xxxxxxxxxxx
Reply-to: chas3@xxxxxxxxxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
please apply to the 2.6 and 2.4 kernels.

thanks!

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#                  ChangeSet    1.1674  -> 1.1675 
#              net/atm/lec.c    1.39    -> 1.40   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 04/03/24      chas@xxxxxxxxxxxxxxxxxxxxxx     1.1675
# [ATM]: [lec] lec_push() races with vcc->proto_data
# --------------------------------------------
#
diff -Nru a/net/atm/lec.c b/net/atm/lec.c
--- a/net/atm/lec.c     Wed Mar 24 15:17:37 2004
+++ b/net/atm/lec.c     Wed Mar 24 15:17:37 2004
@@ -797,8 +797,8 @@
        vcc->pop = lec_pop;
         lec_vcc_added(dev_lec[ioc_data.dev_num]->priv, 
                       &ioc_data, vcc, vcc->push);
-        vcc->push = lec_push;
         vcc->proto_data = dev_lec[ioc_data.dev_num];
+        vcc->push = lec_push;
         return 0;
 }
 

<Prev in Thread] Current Thread [Next in Thread>