aboutsummaryrefslogtreecommitdiffstats
path: root/net/x25/x25_in.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/x25/x25_in.c')
-rw-r--r--net/x25/x25_in.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/x25/x25_in.c b/net/x25/x25_in.c
index b2bbe552a89..ba13248aa1c 100644
--- a/net/x25/x25_in.c
+++ b/net/x25/x25_in.c
@@ -112,8 +112,9 @@ static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametyp
112 * Copy any Call User Data. 112 * Copy any Call User Data.
113 */ 113 */
114 if (skb->len >= 0) { 114 if (skb->len >= 0) {
115 memcpy(x25->calluserdata.cuddata, skb->data, 115 skb_copy_from_linear_data(skb,
116 skb->len); 116 x25->calluserdata.cuddata,
117 skb->len);
117 x25->calluserdata.cudlength = skb->len; 118 x25->calluserdata.cudlength = skb->len;
118 } 119 }
119 if (!sock_flag(sk, SOCK_DEAD)) 120 if (!sock_flag(sk, SOCK_DEAD))