Remove the alignment of the align parameter. This is up to the caller to pass

in and it breaks tap(4) on strict alignment machines as m_uiotombuf is called
with ETHER_ALIGN.

Found by:	Jared Go
Reviewed by:	emax
MFC after:	3 days
This commit is contained in:
Andrew Thompson 2008-09-05 04:05:31 +00:00
parent b042e9760c
commit 9128ec21f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182777

View File

@ -1732,10 +1732,8 @@ m_uiotombuf(struct uio *uio, int how, int len, int align, int flags)
/*
* The smallest unit returned by m_getm2() is a single mbuf
* with pkthdr. We can't align past it. Align align itself.
* with pkthdr. We can't align past it.
*/
if (align)
align &= ~(sizeof(long) - 1);
if (align >= MHLEN)
return (NULL);