mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 03:32:42 +01:00
agent: Only cancel if default agent is registered
If we do not have a default agent registered, then do not try to cancel a request as there will not be one.
This commit is contained in:
parent
c05c54a22b
commit
84d61c521f
@ -284,6 +284,9 @@ bool agent_request_cancel(unsigned int req_id)
|
||||
{
|
||||
struct agent_request *request;
|
||||
|
||||
if (!default_agent)
|
||||
return false;
|
||||
|
||||
request = l_queue_remove_if(default_agent->requests, find_request,
|
||||
L_UINT_TO_PTR(req_id));
|
||||
if (!request)
|
||||
|
Loading…
Reference in New Issue
Block a user