diff options
-rw-r--r-- | backport/backport-include/net/sock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/backport-include/net/sock.h b/backport/backport-include/net/sock.h index ec67b9e2..1a0a4155 100644 --- a/backport/backport-include/net/sock.h +++ b/backport/backport-include/net/sock.h @@ -38,4 +38,9 @@ #define SOCK_SELECT_ERR_QUEUE (SOCK_QUEUE_SHRUNK + 14) #endif +#ifndef sock_skb_cb_check_size +#define sock_skb_cb_check_size(size) \ + BUILD_BUG_ON((size) > FIELD_SIZEOF(struct sk_buff, cb)) +#endif + #endif /* __BACKPORT_NET_SOCK_H */ |