Skip to content
Commit 519f4ed0 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: replace some -ENOTTY with -EINVAL



-ENOTTY is returned in case of error in the ioctl arguments themselves,
such as function that doesn't exists.

In all other cases, where the error is in the arguments of the custom
data structures that we define that are passed in the various ioctls,
we need to return -EINVAL.

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 0a63ac76
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment