]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check for a NULL free buffer pointer in BPF before invoking
authorRobert Watson <rwatson@FreeBSD.org>
Tue, 25 Mar 2008 07:41:33 +0000 (07:41 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Tue, 25 Mar 2008 07:41:33 +0000 (07:41 +0000)
commitfa0c2b3474b7a5cc8c6b1b649402fe77515f9eaf
treec85c0805ea0ddbb0b3701788f484d9d602cc5942
parent3c7e78d32dd3db9f45e533c875cbd17c8eddbf57
Check for a NULL free buffer pointer in BPF before invoking
bpf_canfreebuf() in order to avoid potentially calling a non-inlinable
but trivial function in zero-copy buffer mode for every packet
received when we couldn't free the buffer anyway.

MFC after: 4 months
sys/net/bpf.c