param: lock myri10ge_fw_name against sysfs changes.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Aug 2010 05:04:31 +0000 (23:04 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Aug 2010 13:34:32 +0000 (23:04 +0930)
commit7d3510356b066bcfa9898ec3f90c9c7810ba6ed7
treeff39499bd06c42bc7cd3965f2491091ab937b9ee
parentd6d1b650ae6acce73d55dd0246de22180303ae73
param: lock myri10ge_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: Andrew Gallatin <gallatin@myri.com>
Cc: Brice Goglin <brice@myri.com>
Cc: netdev@vger.kernel.org
drivers/net/myri10ge/myri10ge.c