X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fsctp%2Fsocket.c;h=dbb79adf8f3c0bab606f7141e96ae96dd29b3e4c;hb=37f55e9d78d1b63047b1b7ae175cdce650547ba8;hp=79bece16aede7959948010158733bfaa21187df6;hpb=7f9dce38378f0a4a298e885553d6bb7121376376;p=linux-2.6 diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 79bece16ae..dbb79adf8f 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -3910,7 +3910,7 @@ static int sctp_getsockopt_peeloff(struct sock *sk, int len, char __user *optval goto out; /* Map the socket to an unused fd that can be returned to the user. */ - retval = sock_map_fd(newsock); + retval = sock_map_fd(newsock, 0); if (retval < 0) { sock_release(newsock); goto out;