On Tue, Aug 30, 2011 at 2:38 PM, Sven Neumann <s.neumann@xxxxxxxxxxxx> wrote: > The function wiphy_update_regulatory() uses the static variable > last_request and thus needs to be called with reg_mutex held. > This is the case for all users in reg.c, but the function was > exported for use by wiphy_register(), from where it is called > without the lock being held. > > Fix this by making wiphy_update_regulatory() private and introducing > regulatory_update() as a wrapper that acquires and holds the lock. > > Signed-off-by: Sven Neumann <s.neumann@xxxxxxxxxxxx> > Cc: John W. Linville <linville@xxxxxxxxxxxxx> > Cc: Luis R. Rodriguez <mcgrof@xxxxxxxxx> > Cc: Daniel Mack <daniel@xxxxxxxxxx> > Cc: linux-wireless@xxxxxxxxxxxxxxx Acked-by: Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx> Luis -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html