Fix. Change EPERM to ENOMEM.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>