Re: [PATCH] vmsplice.2: vmsplice() does not fail on nr_segs=0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!
> This case is no-op and no error is returned.
> 
> See fs/splice.c vmsplice syscall which contains:
> 
>         if (unlikely(nr_segs > UIO_MAXIOV))
>                 return -EINVAL;
>         else if (unlikely(!nr_segs))
>                 return 0;
> 
> and looking at the git log suggests that this snipped was always there.


Ping?

-- 
Cyril Hrubis
chrubis@xxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux