1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

amd_ecc_inject: return an error instead of ignoring it in tsc_modevent

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-11-24 16:22:56 +00:00
parent cfe94aa8c1
commit ab9d2f02a0

View File

@ -237,9 +237,9 @@ tsc_modevent(module_t mod __unused, int type, void *data __unused)
case MOD_SHUTDOWN:
break;
default:
return (EOPNOTSUPP);
error = EOPNOTSUPP;
}
return (0);
return (error);
}
DEV_MODULE(tsc, tsc_modevent, NULL);