projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce6654c
)
unix: Use FIELD_SIZEOF() in af_unix_init().
author
YOSHIFUJI Hideaki / 吉藤英明
<yoshfuji@linux-ipv6.org>
Wed, 9 Jan 2013 07:20:07 +0000
(07:20 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 10 Jan 2013 07:38:24 +0000
(23:38 -0800)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c
patch
|
blob
|
blame
|
history
diff --git
a/net/unix/af_unix.c
b/net/unix/af_unix.c
index 5b5c876c80e9b543bd7b773c1a1f45f83f696e7b..0c612361c1534fa3edaaa0961873f2351371ee5e 100644
(file)
--- a/
net/unix/af_unix.c
+++ b/
net/unix/af_unix.c
@@
-2426,9
+2426,8
@@
static struct pernet_operations unix_net_ops = {
static int __init af_unix_init(void)
{
int rc = -1;
- struct sk_buff *dummy_skb;
- BUILD_BUG_ON(sizeof(struct unix_skb_parms) >
sizeof(dummy_skb->
cb));
+ BUILD_BUG_ON(sizeof(struct unix_skb_parms) >
FIELD_SIZEOF(struct sk_buff,
cb));
rc = proto_register(&unix_proto, 1);
if (rc != 0) {