summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-09-15 02:39:20 -0700
committerDavid S. Miller <davem@davemloft.net>2009-09-15 02:39:20 -0700
commit29a020d35f629619c67fa5e32acaaac3f8a1ba90 (patch)
tree65f9ce8a822633aa1e6cdf25be3aa258d2d21db1 /net
parent75c78500ddad74b229cd0691496b8549490496a2 (diff)
downloadlinux-rpi3-29a020d35f629619c67fa5e32acaaac3f8a1ba90.tar.gz
linux-rpi3-29a020d35f629619c67fa5e32acaaac3f8a1ba90.tar.bz2
linux-rpi3-29a020d35f629619c67fa5e32acaaac3f8a1ba90.zip
[PATCH] net: kmemcheck annotation in struct socket
struct socket has a 16 bit hole that triggers kmemcheck warnings. As suggested by Ingo, use kmemcheck annotations Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/socket.c b/net/socket.c
index 6d4716559047..2a022c00d85c 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -489,6 +489,7 @@ static struct socket *sock_alloc(void)
sock = SOCKET_I(inode);
+ kmemcheck_annotate_bitfield(sock, type);
inode->i_mode = S_IFSOCK | S_IRWXUGO;
inode->i_uid = current_fsuid();
inode->i_gid = current_fsgid();