mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
d4b0bcf32b
Return EINVAL from write if the size is larger than allowed. Do this before allocating kernel memory for the bogus size, which could lead to OOM. Reported-by: Sasha Levin <levinsasha928@gmail.com> Tested-by: Jana Saout <jana@saout.de> Signed-off-by: David Teigland <teigland@redhat.com>