Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Tested-by: Jana Saout <[email protected]> Signed-off-by: David Teigland <[email protected]>
- Loading branch information