From: Jouni Malinen Date: Mon, 3 Oct 2005 00:19:00 +0000 (-0700) Subject: [PATCH] hostap: Do not free local->hw_priv before unregistering netdev X-Git-Tag: v2.6.15-rc1~733^2~1^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c355184cd3cd58c9ffc78f2a17e0ac3563312ea7;p=pandora-kernel.git [PATCH] hostap: Do not free local->hw_priv before unregistering netdev local->hw_priv was being freed and set to NULL just before calling prism2_free_local_data(). However, this may expose a race condition in which something ends up trying to use hw_priv during shutdown. I haven't noticed this happening, but better be safe than sorry, so let's postpone hw_priv freeing to happen only after prism2_free_local_data() has returned. Signed-off-by: Jouni Malinen Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed