mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-28 20:03:05 +00:00
HID: Fix return values in open_collection()
Return -ENOMEM instead of -1 if memory allocation fails. Return -EINVAL instead of -1 for stack overflow and underflow errors. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
832fbeaef4
commit
a6fbaacfb9
1 changed files with 3 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue