HomeFreeBSD

LinuxKPI: 802.11: initalize lsta to NULL in linuxkpi_ieee80211_rx()

Description

LinuxKPI: 802.11: initalize lsta to NULL in linuxkpi_ieee80211_rx()

The logic following this new assignment in some cases may not set lsta
but the later tracing is checking for it to be != NULL.
With lsta not initialized that check may not hold up and later we would
dereference lsta->state and possibly panic.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D45507

Details

Provenance
bzAuthored on Wed, Jun 5, 10:35 PM
Reviewer
emaste
Differential Revision
D45507: LinuxKPI: 802.11: initalize lsta to NULL in linuxkpi_ieee80211_rx()
Parents
rGd9ab89993138: pf: migrate DIOCGETLIMIT/DIOCSETLIMIT to netlink
Branches
Unknown
Tags
Unknown