Re: [PATCH 0/6] Return -ENODEV instead of -EFAULT on module-get failure
From: Bui Duc Phuc
Date: Tue Jul 07 2026 - 04:18:22 EST
Hi Takashi-san, Cezary,
Thanks for checking.
> A quick grep showed the statics like:
> 85 ENODEV
> 41 EINVAL
> 17 EBUSY
> 16 EFAULT
> 14 ENOENT
> 10 EPROBE
> 8 EIO
> 6 ENXIO
> 3 EPROTONOSUPPORT
> 3 EAGAIN
> 3 EACCES
> 2 EXPORT
> 2 EPERM
> 2 ENOLCK
> 1 EPROTO
> 1 EOPNOTSUPP
> 1 ENOSYS
> 1 ENOPROTOOPT
> 1 EAFNOSUPPORT
>
> So -ENODEV looks fine.
>
I'll keep the current -ENODEV return value.
I'll update the commit message and send a v2.
Best regards,
Phuc