OpenBSD cvs log

created 2018-12-30T11:18:11Z
begin 2018-12-22T00:00:00Z
end 2018-12-23T00:00:00Z
path src/sys
commits 1

date 2018-12-22T14:42:29Z
author kettenis
files src/sys/dev/sdmmc/if_bwfm_sdio.c log diff annotate
message Avoid using m_trailingspace(9) on an mbuf allocated with MGET(9) as it relies
on header fields that aren't initialized, which may trigger an assertion.
Check whether the control message doesn't exceed MLEN instead and turn the
check into a KASSERT as the driver should not generate control messages
that are larger.

with help form claudio@ (who points out that the driver should not use
MT_CONTROL here).

ok patrick@