Module Name: src Committed By: maxv Date: Fri Jun 1 09:34:39 UTC 2018
Modified Files: src/sys/dev/pci: if_age.c if_alc.c if_ena.c Log Message: Fix M_PKTHDR use in if_alc, if_age and if_ena. if_alc and if_age always put in _rxhead a M_PKTHDR-flagged mbuf, so the flag must always be present. Instead of manually adding the flag, add a KASSERT to ensure it is already there. If it weren't, there would be memory corruptions. Same in if_ena, but this one does not compile so we don't really care. Also, use m_remove_pkthdr to remove the flag, instead of doing it manually. This ensures the tags get freed (even though these drivers don't seem to be using mtags). To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/dev/pci/if_age.c cvs rdiff -u -r1.25 -r1.26 src/sys/dev/pci/if_alc.c cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pci/if_ena.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.