-
Kees Cook authored
This is a tiny preventative measure to make sure we can't write beyond PAGE_SIZE on the buffers being used in sysfs for iio. There is currently no way for this to happen, but the change makes this code more robust for the future. Signed-off-by:
Kees Cook <keescook@chromium.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
598db581