diff options
author | Mark Brown <broonie@linaro.org> | 2013-12-18 17:24:24 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-18 17:24:41 +0000 |
commit | d1c8b1bd093cb57860fb6446e096e1c1cda92d4d (patch) | |
tree | 9c93ddf1ced6064a7f75a3f8a3691d09e624edb9 /net/unix/af_unix.c | |
parent | d13733f4a24d93c582f22f17b5434cf195b7d505 (diff) | |
parent | 1b1ccee1e821e59c2a45c95b007aeb2c9dafd9be (diff) |
Merge tag 's2mps11-build' into regulator-s5m8767 since a following patch
depend on it.
regulator/clk: Fix s2mps11 build
This patch fixes a build failure that appeared in v3.13-rc4 due to an
RTC/MFD update merged via -mm.
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r-- | net/unix/af_unix.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 01625ccc3ae6..a0ca162e5bd5 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -530,13 +530,17 @@ static int unix_seqpacket_sendmsg(struct kiocb *, struct socket *, static int unix_seqpacket_recvmsg(struct kiocb *, struct socket *, struct msghdr *, size_t, int); -static void unix_set_peek_off(struct sock *sk, int val) +static int unix_set_peek_off(struct sock *sk, int val) { struct unix_sock *u = unix_sk(sk); - mutex_lock(&u->readlock); + if (mutex_lock_interruptible(&u->readlock)) + return -EINTR; + sk->sk_peek_off = val; mutex_unlock(&u->readlock); + + return 0; } |