diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-07 23:09:17 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-11-07 23:10:17 (GMT) |
commit | 375d9d71838970030c8e0bf0ac2abcc1a3487df8 (patch) | |
tree | 8c4cb7363852c41ed873fd245d44c155c2b2bed9 /net/decnet/dn_nsp_out.c | |
parent | af2c6a4aaa2253f1e29df8fb59a3d92174d30a33 (diff) | |
download | linux-fsl-qoriq-375d9d71838970030c8e0bf0ac2abcc1a3487df8.tar.xz |
[DECNET]: Endianess fixes (try #2)
Here are some fixes to endianess problems spotted by Al Viro.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/dn_nsp_out.c')
-rw-r--r-- | net/decnet/dn_nsp_out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/dn_nsp_out.c b/net/decnet/dn_nsp_out.c index c2e21cd..b342e4e 100644 --- a/net/decnet/dn_nsp_out.c +++ b/net/decnet/dn_nsp_out.c @@ -526,7 +526,7 @@ void dn_send_conn_conf(struct sock *sk, gfp_t gfp) struct nsp_conn_init_msg *msg; __u8 len = (__u8)dn_ntohs(scp->conndata_out.opt_optl); - if ((skb = dn_alloc_skb(sk, 50 + dn_ntohs(scp->conndata_out.opt_optl), gfp)) == NULL) + if ((skb = dn_alloc_skb(sk, 50 + len, gfp)) == NULL) return; msg = (struct nsp_conn_init_msg *)skb_put(skb, sizeof(*msg)); |