commit | a6fbaacfb990580c080e4fad6623b7108f5a0507 | [log] [tgz] |
---|---|---|
author | Sachin Kamat <sachin.kamat@linaro.org> | Mon Sep 17 16:41:56 2012 +0530 |
committer | Jiri Kosina <jkosina@suse.cz> | Mon Sep 17 13:15:55 2012 +0200 |
tree | 85ac2fbf6ce62d686006c91dce792325eaea9212 | |
parent | 832fbeaef446a7024c5e0f19b7122100a7b1003d [diff] |
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>