]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r290441:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Nov 2015 11:29:54 +0000 (11:29 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Nov 2015 11:29:54 +0000 (11:29 +0000)
commit6e30a360f81a42d4e30f13ea08ef9a74a8707259
tree6230f9517a4376f5e412613b7fd06342f6241ce1
parentae3a14278832e33b555ba8f372e84a11941550c7
MFC r290441:
Fix for unaligned IP-header.

The mbuf length fields must be set before m_adj() is called else
m_adj() will not always adjust the mbuf and an unaligned read
exception can trigger inside the network stack. This can happen on
platforms where unaligned reads are not supported. Adjust a length
check to include the 2-byte ethernet alignment while at it.

git-svn-id: svn://svn.freebsd.org/base/stable/8@290609 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/usb/net/if_cdce.c