Skip to content
Commit cbf82e35 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Kees Cook
Browse files

pstore/zone: cap the maximum device size



Introduce an abritrary 128MiB cap to avoid malloc failures when using
a larger block device.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarWeiXiong Liao <gmpy.liaowx@gmail.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20201016132047.3068029-2-hch@lst.de
parent 3cea11cd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment