diff options
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r-- | net/tipc/link.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index c6831c75cfa4..c10e18a49b96 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -998,6 +998,8 @@ static int link_bundle_buf(struct link *l_ptr, | |||
998 | return 0; | 998 | return 0; |
999 | if (skb_tailroom(bundler) < (pad + size)) | 999 | if (skb_tailroom(bundler) < (pad + size)) |
1000 | return 0; | 1000 | return 0; |
1001 | if (link_max_pkt(l_ptr) < (to_pos + size)) | ||
1002 | return 0; | ||
1001 | 1003 | ||
1002 | skb_put(bundler, pad + size); | 1004 | skb_put(bundler, pad + size); |
1003 | memcpy(bundler->data + to_pos, buf->data, size); | 1005 | memcpy(bundler->data + to_pos, buf->data, size); |