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

Daniil Dulov posted 1 patch 1 month, 1 week ago
[PATCH 5.10 0/1] wifi: rtl8xxxu: Fix the error handling of the probe function
Posted by Daniil Dulov 1 month, 1 week ago
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.