diff options
author | Toomas Soome <tsoome@me.com> | 2019-12-26 09:23:25 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-01-29 23:48:15 +0200 |
commit | c6f039c73ee9eb7e4acb232afaca51cdf9d30ff3 (patch) | |
tree | 4906910bfbdbc344a6c48f8760f09be68e9ac7c4 /usr/src/uts/common/os/modctl.c | |
parent | 7093fd72e0be9a255aa4b1ed00a701f80699ac7d (diff) | |
download | illumos-gate-c6f039c73ee9eb7e4acb232afaca51cdf9d30ff3.tar.gz |
12172 genunix: variable may be used uninitialized
Reviewed by: John Levon <john.levon@joyent.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/common/os/modctl.c')
-rw-r--r-- | usr/src/uts/common/os/modctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/uts/common/os/modctl.c b/usr/src/uts/common/os/modctl.c index e2a3335eb4..7463cdb92f 100644 --- a/usr/src/uts/common/os/modctl.c +++ b/usr/src/uts/common/os/modctl.c @@ -415,6 +415,7 @@ modctl_modinfo(modid_t id, struct modinfo *umodi) struct modinfo32 modi32; #endif + nobase = 0; if (get_udatamodel() == DATAMODEL_NATIVE) { if (copyin(umodi, &modi, sizeof (struct modinfo)) != 0) return (EFAULT); @@ -501,6 +502,7 @@ modctl_update_driver_aliases(int add, int *data) int alias_resid; } *aliases, *aip; + aliases = NULL; bzero(&mc, sizeof (struct modconfig)); if (get_udatamodel() == DATAMODEL_NATIVE) { if (copyin(data, &mc, sizeof (struct modconfig)) != 0) @@ -2800,6 +2802,7 @@ modloadonly(const char *subdir, const char *filename) fullname = (char *)filename; } + id = -1; modp = mod_hold_loaded_mod(NULL, fullname, &retval); if (modp) { id = modp->mod_id; |