Skip to content
Commit a6fbaacf authored by Sachin Kamat's avatar Sachin Kamat Committed by Jiri Kosina
Browse files

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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 832fbeae
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