From 1175e8ab589e189b9962bdf44e47a2051ef0d593 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 31 Oct 2020 19:29:16 +1100 Subject: [PATCH] return -EOPNOTSUPP for devices that are not supported --- vendor-reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor-reset.c b/vendor-reset.c index 47ab4ec..3a606b2 100644 --- a/vendor-reset.c +++ b/vendor-reset.c @@ -57,7 +57,7 @@ static long vendor_reset_ioctl_reset(struct file * filp, unsigned long arg) if (entry->type == VENDOR_RESET_TYPE_INVALID) { - ret = -ENODEV; + ret = -EOPNOTSUPP; goto err; }