Home
last modified time | relevance | path

Searched hist:a6fbaacfb990580c080e4fad6623b7108f5a0507 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/hid/
H A Dhid-core.cdiff a6fbaacfb990580c080e4fad6623b7108f5a0507 Mon Sep 17 06:11:56 CDT 2012 Sachin Kamat <sachin.kamat@linaro.org> 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>