handle: change return value from -EFAULT to -EPERM
authorDjalal Harouni <tixxdz@opendz.org>
Mon, 31 Mar 2014 00:41:25 +0000 (01:41 +0100)
committerKay Sievers <kay@vrfy.org>
Mon, 31 Mar 2014 12:26:35 +0000 (14:26 +0200)
commitba33a55cb77bce854096028c3b645618099145bf
tree14f768fe10ee220eccc04aae6afb3ee82c70dd6e
parent34b30f225767467bfdad67bc0a056e8d6a2e3466
handle: change return value from -EFAULT to -EPERM

Return -EPERM if current does not have the appropriate privileges to
create custom endpoints.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
handle.c