diff options
author | David S. Miller <davem@davemloft.net> | 2017-01-05 11:03:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-05 11:03:07 -0500 |
commit | 76eb75be79b52a3c6ae1fd840083fa1a04458c1c (patch) | |
tree | bb90a570be2b1f521913b6233e11bae841608ad0 /net/socket.c | |
parent | 57ea884b0dcf1e59661955919976ef138ec9cdb0 (diff) | |
parent | e02003b515e8d95f40f20f213622bb82510873d2 (diff) | |
download | op-kernel-dev-76eb75be79b52a3c6ae1fd840083fa1a04458c1c.zip op-kernel-dev-76eb75be79b52a3c6ae1fd840083fa1a04458c1c.tar.gz |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index 5f3b5a2..c65bb92 100644 --- a/net/socket.c +++ b/net/socket.c @@ -537,7 +537,7 @@ int sockfs_setattr(struct dentry *dentry, struct iattr *iattr) { int err = simple_setattr(dentry, iattr); - if (!err) { + if (!err && (iattr->ia_valid & ATTR_UID)) { struct socket *sock = SOCKET_I(d_inode(dentry)); sock->sk->sk_uid = iattr->ia_uid; |