4.2BSD bugfix netimp/if_imphost.c

walsh%bbn-unix at sri-unix.UUCP walsh%bbn-unix at sri-unix.UUCP
Mon Feb 27 11:10:44 AEST 1984


From:  Bob Walsh <walsh at bbn-unix>


Problem:
	A vax with multiple imps seg faults upon booting.

Solution:
	Fix netimp/if_imphost.c for reasons that the comments in the code
	indicate.

121,123d120
< #ifdef BUGFIXES
< 	register struct mbuf *nextm;
< #endif
126,132d122
< #ifdef BUGFIXES
< 	/*
< 	 * see BUGFIXES below
< 	 */
< 	for (m = hosts; m; m = nextm) {
< 		nextm = m->m_next;
< #else
134d123
< #endif
209,211d197
< #ifdef BUGFIXES
< 	register struct mbuf *nextm;
< #endif
215,226d200
< #ifdef BUGFIXES
< 	/*
< 	 * hostrelease may put the current m on the free list, so avoid
< 	 * traversing the free list instead of the host list.  Not only is
< 	 * this wrong, but it can cause a panic if an mbuf pointing to a page
< 	 * is used since then in hostrelease(), the dtom macro does not
< 	 * produce a proper pointer to the mbuf structure.
< 	 * bw 2/26/84
< 	 */
< 	for (m = hosts; m; m = nextm) {
< 		nextm = m->m_next;
< #else
228d201
< #endif

bob walsh



More information about the Comp.unix.wizards mailing list