aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_sideeffect.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-08-07 03:28:09 -0400
committerDavid S. Miller <davem@davemloft.net>2012-08-15 02:30:37 -0400
commit24cb81a6a91288fcba19548944729ea906eb5e2a (patch)
tree0816959b1ded8edac01bc7975514f7a7e4143bd9 /net/sctp/sm_sideeffect.c
parente7ff4a7037e6908b7a5f4682945a0b097d5b3535 (diff)
sctp: Push struct net down into all of the state machine functions
There are a handle of state machine functions primarily those dealing with processing INIT packets where there is neither a valid endpoint nor a valid assoication from which to derive a struct net. Therefore add struct net * to the parameter list of sctp_state_fn_t and update all of the state machine functions. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_sideeffect.c')
-rw-r--r--net/sctp/sm_sideeffect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c
index 02c4c1c066a7..bcfebb91559d 100644
--- a/net/sctp/sm_sideeffect.c
+++ b/net/sctp/sm_sideeffect.c
@@ -1123,7 +1123,7 @@ int sctp_do_sm(struct net *net, sctp_event_t event_type, sctp_subtype_t subtype,
1123 sctp_init_cmd_seq(&commands); 1123 sctp_init_cmd_seq(&commands);
1124 1124
1125 DEBUG_PRE; 1125 DEBUG_PRE;
1126 status = (*state_fn->fn)(ep, asoc, subtype, event_arg, &commands); 1126 status = (*state_fn->fn)(net, ep, asoc, subtype, event_arg, &commands);
1127 DEBUG_POST; 1127 DEBUG_POST;
1128 1128
1129 error = sctp_side_effects(event_type, subtype, state, 1129 error = sctp_side_effects(event_type, subtype, state,