diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-01-12 06:37:42 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-12 06:37:42 +0100 |
commit | 83eb95b852902f952ba594447a796ad8146b9462 (patch) | |
tree | 33c199aeeae58b69ad8d6d2a33c2d96ba2b98ddf /net/caif/caif_socket.c | |
parent | sh: Fix up legacy PTEA space attribute mapping. (diff) | |
parent | sh: sh7366 Enable SDIO IRQs (diff) | |
download | linux-83eb95b852902f952ba594447a796ad8146b9462.tar.xz linux-83eb95b852902f952ba594447a796ad8146b9462.zip |
Merge branch 'sh/sdio' into sh-latest
Diffstat (limited to 'net/caif/caif_socket.c')
-rw-r--r-- | net/caif/caif_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c index 1bf0cf503796..8184c031d028 100644 --- a/net/caif/caif_socket.c +++ b/net/caif/caif_socket.c @@ -740,12 +740,12 @@ static int setsockopt(struct socket *sock, if (cf_sk->sk.sk_protocol != CAIFPROTO_UTIL) return -ENOPROTOOPT; lock_sock(&(cf_sk->sk)); - cf_sk->conn_req.param.size = ol; if (ol > sizeof(cf_sk->conn_req.param.data) || copy_from_user(&cf_sk->conn_req.param.data, ov, ol)) { release_sock(&cf_sk->sk); return -EINVAL; } + cf_sk->conn_req.param.size = ol; release_sock(&cf_sk->sk); return 0; |