param: lock if_sdio's lbs_helper_name and lbs_fw_name against sysfs changes.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Aug 2010 05:04:33 +0000 (23:04 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Aug 2010 13:34:37 +0000 (23:04 +0930)
commit886275ce41a9751117367fb387ed171049eb6148
tree0e712d9902ab3c2c23dffb1c3565369fac72d2fa
parent7d3510356b066bcfa9898ec3f90c9c7810ba6ed7
param: lock if_sdio's lbs_helper_name and lbs_fw_name against sysfs changes.

Since it can be changed via sysfs, we need to make a copy.  This most
generic way of doing this is to keep a flag so we know when to free it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Cc: Dan Williams <dcbw@redhat.com>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: libertas-dev@lists.infradead.org
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
drivers/net/wireless/libertas/if_sdio.c