Input: gpio_keys - return proper error code if memory allocation fails