mirror of https://github.com/torvalds/linux.git
In mctp_getsockopt(), unrecognized options currently return -EINVAL.
In contrast, mctp_setsockopt() returns -ENOPROTOOPT for unknown
options.
Update mctp_getsockopt() to also return -ENOPROTOOPT for unknown
options. This aligns the behavior of getsockopt() and setsockopt(),
and matches the standard kernel socket API convention for handling
unsupported options.
Fixes:
|
||
|---|---|---|
| .. | ||
| test | ||
| Kconfig | ||
| Makefile | ||
| af_mctp.c | ||
| device.c | ||
| neigh.c | ||
| route.c | ||