Linux wireless drivers development
 help / color / mirror / Atom feed
* mac80211 sta_info->dev race
@ 2007-09-11  9:00 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2007-09-11  9:00 UTC (permalink / raw)
  To: Michael Wu; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

Hey,

I'm working on making sta_info a per-virtual-interface structure for the
rare case where we have multiple virtual stations associated to the same
AP or for example WDS links.

Working through the code I notice that struct sta_info has a "dev"
pointer (which I will change to "sdata"), but as far as I can tell
nothing guarantees that we don't do sta_info_get(), then down the
interface, and then try to dereference sta_info->dev.

I see two ways to avoid this:
 (1) in sta_info_flush(), wait until each sta is actually released,
     don't just put it
 (2) with each sta_info_get() also do a dev_hold()

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-11 10:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-11  9:00 mac80211 sta_info->dev race Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox