diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index c1a199c0fa6d..ead22e5eed32 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -1027,7 +1027,7 @@ restart: | |||
1027 | 1027 | ||
1028 | if (!err) { | 1028 | if (!err) { |
1029 | buf_crs = (unsigned char *)(TIPC_SKB_CB(buf)->handle); | 1029 | buf_crs = (unsigned char *)(TIPC_SKB_CB(buf)->handle); |
1030 | sz = skb_tail_pointer(buf) - buf_crs; | 1030 | sz = (unsigned char *)msg + msg_size(msg) - buf_crs; |
1031 | 1031 | ||
1032 | needed = (buf_len - sz_copied); | 1032 | needed = (buf_len - sz_copied); |
1033 | sz_to_copy = (sz <= needed) ? sz : needed; | 1033 | sz_to_copy = (sz <= needed) ? sz : needed; |