diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-29 17:49:12 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-29 17:49:12 -0400 |
| commit | b0c4e148bd591629749d02a8fbc8d81c26d548cf (patch) | |
| tree | 3e2142635f3dc2ceeae870ead2dceab7b9c6def1 /include/net | |
| parent | 5615ca7906aefbdc3318604c89db5931d0a25910 (diff) | |
| parent | be15cd72d256e5eb3261a781b8507fac83ab33f6 (diff) | |
Merge branch 'master'
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/ax25.h | 3 | ||||
| -rw-r--r-- | include/net/netrom.h | 3 | ||||
| -rw-r--r-- | include/net/sctp/user.h | 8 |
3 files changed, 6 insertions, 8 deletions
diff --git a/include/net/ax25.h b/include/net/ax25.h index 30bb4a893237..2250a18b0cbb 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h | |||
| @@ -237,8 +237,7 @@ typedef struct ax25_cb { | |||
| 237 | static __inline__ void ax25_cb_put(ax25_cb *ax25) | 237 | static __inline__ void ax25_cb_put(ax25_cb *ax25) |
| 238 | { | 238 | { |
| 239 | if (atomic_dec_and_test(&ax25->refcount)) { | 239 | if (atomic_dec_and_test(&ax25->refcount)) { |
| 240 | if (ax25->digipeat) | 240 | kfree(ax25->digipeat); |
| 241 | kfree(ax25->digipeat); | ||
| 242 | kfree(ax25); | 241 | kfree(ax25); |
| 243 | } | 242 | } |
| 244 | } | 243 | } |
diff --git a/include/net/netrom.h b/include/net/netrom.h index a6bf6e0f606a..a5ee53bce62f 100644 --- a/include/net/netrom.h +++ b/include/net/netrom.h | |||
| @@ -136,8 +136,7 @@ static __inline__ void nr_node_put(struct nr_node *nr_node) | |||
| 136 | static __inline__ void nr_neigh_put(struct nr_neigh *nr_neigh) | 136 | static __inline__ void nr_neigh_put(struct nr_neigh *nr_neigh) |
| 137 | { | 137 | { |
| 138 | if (atomic_dec_and_test(&nr_neigh->refcount)) { | 138 | if (atomic_dec_and_test(&nr_neigh->refcount)) { |
| 139 | if (nr_neigh->digipeat != NULL) | 139 | kfree(nr_neigh->digipeat); |
| 140 | kfree(nr_neigh->digipeat); | ||
| 141 | kfree(nr_neigh); | 140 | kfree(nr_neigh); |
| 142 | } | 141 | } |
| 143 | } | 142 | } |
diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h index 1c5f19f995ad..f1c3bc54526a 100644 --- a/include/net/sctp/user.h +++ b/include/net/sctp/user.h | |||
| @@ -171,10 +171,10 @@ struct sctp_sndrcvinfo { | |||
| 171 | */ | 171 | */ |
| 172 | 172 | ||
| 173 | enum sctp_sinfo_flags { | 173 | enum sctp_sinfo_flags { |
| 174 | MSG_UNORDERED = 1, /* Send/receive message unordered. */ | 174 | SCTP_UNORDERED = 1, /* Send/receive message unordered. */ |
| 175 | MSG_ADDR_OVER = 2, /* Override the primary destination. */ | 175 | SCTP_ADDR_OVER = 2, /* Override the primary destination. */ |
| 176 | MSG_ABORT=4, /* Send an ABORT message to the peer. */ | 176 | SCTP_ABORT=4, /* Send an ABORT message to the peer. */ |
| 177 | /* MSG_EOF is already defined per socket.h */ | 177 | SCTP_EOF=MSG_FIN, /* Initiate graceful shutdown process. */ |
| 178 | }; | 178 | }; |
| 179 | 179 | ||
| 180 | 180 | ||
