Skip to content
Commit 0ac2d654 authored by Mathieu Anquetin's avatar Mathieu Anquetin Committed by Benjamin Cabé
Browse files

net: dhcpv4: fix deadlock issue



There is a deadlock issue when calling stop using address conflict
detection. This is due to the fact that some net_mgmt events are fired
and trigger the dhcpv4_acd_event_handler() with lock held even if they
are of no interest for this callback.

Therefore, before acquiring the lock, make sure the event we received
is one we are expecting.

Also, do the same for dhcpv4_iface_event_handler().

Signed-off-by: default avatarMathieu Anquetin <mathieu.anquetin@groupe-cahors.com>
(cherry picked from commit 7282ea08)
parent 7823374e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment