Repository navigation
Commit a2044d9
brcmfmac: Fix race condition bug when deleting p2p interface.
When p2p device interface gets deleted by deinitialising discovery
it will result in an event which removes the interface, but that is
also done by delete p2p interface code. This results in race
condition which sometimes results in lockup/crash. With this patch
the delete device interface will wait for the event (with timeout)
removing the possible race condition. Also on the stop device call
from cfg80211 the deinitialisation of the discovery device should
be avoided as it can result in a similar situation.
Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>1 parent 8268c20 commit a2044d9
1 file changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2241 | 2241 | | |
2242 | 2242 | | |
2243 | 2243 | | |
| 2244 | + | |
2244 | 2245 | | |
2245 | 2246 | | |
2246 | 2247 | | |
| |||
2257 | 2258 | | |
2258 | 2259 | | |
2259 | 2260 | | |
2260 | | - | |
2261 | | - | |
2262 | 2261 | | |
2263 | 2262 | | |
2264 | 2263 | | |
| |||
2270 | 2269 | | |
2271 | 2270 | | |
2272 | 2271 | | |
2273 | | - | |
2274 | | - | |
2275 | | - | |
2276 | | - | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
2277 | 2277 | | |
2278 | 2278 | | |
2279 | 2279 | | |
| |||
2283 | 2283 | | |
2284 | 2284 | | |
2285 | 2285 | | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
2286 | 2289 | | |
2287 | | - | |
| 2290 | + | |
| 2291 | + | |
2288 | 2292 | | |
2289 | 2293 | | |
2290 | 2294 | | |
| |||
2333 | 2337 | | |
2334 | 2338 | | |
2335 | 2339 | | |
2336 | | - | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
2337 | 2343 | | |
2338 | 2344 | | |
2339 | 2345 | | |
| |||
0 commit comments