I'm a dumbass: remember to initialize fh->nf_map to NULL in

ndis_open_file() in the module loading case.
This commit is contained in:
Bill Paul 2004-08-16 19:25:27 +00:00
parent 344bbdbd54
commit ae58ccaa60

View File

@ -2653,6 +2653,7 @@ ndis_open_file(status, filehandle, filelength, filename, highestaddr)
if (ndis_find_sym(lf, afilename, "_end", &kldend))
continue;
fh->nf_vp = lf;
fh->nf_map = NULL;
fh->nf_type = NDIS_FH_TYPE_MODULE;
*filelength = fh->nf_maplen = (kldend - kldstart) & 0xFFFFFFFF;
*filehandle = fh;