mbox series

[5.10,0/1] wifi: rtl8xxxu: Fix the error handling of the probe function

Message ID 20241018103230.437496-1-d.dulov@aladdin.ru (mailing list archive)
Headers show
Series wifi: rtl8xxxu: Fix the error handling of the probe function | expand

Message

Daniil Dulov Oct. 18, 2024, 10:32 a.m. UTC
Svacer reports a NULL-pointer dereference in rtl8xxxu_probe().
After having been compared to a NULL value, pointer hw is passed as
1st parameter in call to ieee80211_free_hw(), where it is dereferenced.
The problem is present in 5.10 stable release and can be fixed by the
following upstream patch that can be cleanly applied to 5.10 branch.