Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162878
b: refs/heads/master
c: 29a020d
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 15, 2009
1 parent dd0c97f commit aafe693
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75c78500ddad74b229cd0691496b8549490496a2
refs/heads/master: 29a020d35f629619c67fa5e32acaaac3f8a1ba90
5 changes: 5 additions & 0 deletions trunk/include/linux/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ typedef enum {
#include <linux/random.h>
#include <linux/wait.h>
#include <linux/fcntl.h> /* For O_CLOEXEC and O_NONBLOCK */
#include <linux/kmemcheck.h>

struct poll_table_struct;
struct pipe_inode_info;
Expand Down Expand Up @@ -127,7 +128,11 @@ enum sock_shutdown_cmd {
*/
struct socket {
socket_state state;

kmemcheck_bitfield_begin(type);
short type;
kmemcheck_bitfield_end(type);

unsigned long flags;
/*
* Please keep fasync_list & wait fields in the same cache line
Expand Down
1 change: 1 addition & 0 deletions trunk/net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aafe693

Please sign in to comment.