On Fri, Dec 16, 2016 at 06:05:20PM -0600, Eric Sandeen wrote: > The GETNEXTQOTA ioctl takes whatever ID is sent in, > and looks for the next active quota for an user > equal or higher to that ID. > > But if we are at the maximum ID and then ask for the "next" > one, we may wrap back to zero. In this case, userspace > may loop forever, because it will start querying again > at zero. > > We'll fix this in userspace as well, but for the kernel, > return -ENOENT if we ask for the next quota ID > past UINT_MAX so the caller knows to stop. > > Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> Looks fine, Reviewed-by: Christoph Hellwig <hch@xxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html