[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090114044856.GA14726@gondor.apana.org.au>
Date: Wed, 14 Jan 2009 15:48:56 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Yang Hongyang <yanghy@...fujitsu.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH]IPv6:remove duplicate check of optlen when setsockopt
with IPV6_PKTINFO option
Yang Hongyang <yanghy@...fujitsu.com> wrote:
>
> If optval==NULL, what we should return?EINVAL or EFAULT?
> If it is EINVAL,then we should check it .otherwise it's the job of
> copy_from_user
I think EFAULT is fine. We return that elsewhere as well.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists