mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
simauth: check driver for NULL before canceling request
If the ofono modem got removed before it was fully initialized this could cause a crash.
This commit is contained in:
parent
95df3e660b
commit
fedfda9fb5
@ -99,7 +99,7 @@ static void destroy_provider(void *data)
|
|||||||
|
|
||||||
void iwd_sim_auth_remove(struct iwd_sim_auth *auth)
|
void iwd_sim_auth_remove(struct iwd_sim_auth *auth)
|
||||||
{
|
{
|
||||||
if (auth->driver->cancel_request)
|
if (auth->driver && auth->driver->cancel_request)
|
||||||
auth->driver->cancel_request(auth, auth->pending);
|
auth->driver->cancel_request(auth, auth->pending);
|
||||||
|
|
||||||
WATCHLIST_NOTIFY_NO_ARGS(&auth->auth_watchers,
|
WATCHLIST_NOTIFY_NO_ARGS(&auth->auth_watchers,
|
||||||
|
Loading…
Reference in New Issue
Block a user