On 01/20/2014 11:48 AM, David Miller wrote: > From: Jason Wang <jasow...@redhat.com> > Date: Mon, 20 Jan 2014 11:16:48 +0800 > >> This patch return the error code of copy helpers in tun_put_user() instead of >> ignoring them. >> >> Cc: Michael S. Tsirkin <m...@redhat.com> >> Signed-off-by: Jason Wang <jasow...@redhat.com> > If you perform some of the copy successfully, you have to report that > length rather than just an error. > > Otherwise userland has no way to determine how much of the data was > successfully sourced. > > I'm not applying this, sorry.
Right, looks like we need more changes in tun to return the accurate length copied in this case. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/