[PATCH 5.10 0/1] wifi: rtl8xxxu: Fix the error handling of the probe function
From: Daniil Dulov
Date: Fri Oct 18 2024 - 06:33:18 EST
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.