iwlwifi: don't use stack memory for kmem cache name
authorJohannes Berg <johannes.berg@intel.com>
Thu, 12 Jul 2012 11:56:28 +0000 (13:56 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 12 Jul 2012 12:37:39 +0000 (14:37 +0200)
commit3ec4588231914344834805a6828551cd5c65afd8
treeb643426daa1081462708fee9d79a1a25ed43cca4
parente911ede7b7613ce231c8e10db8cb778d16013d33
iwlwifi: don't use stack memory for kmem cache name

Since the kmem cache API doesn't internally allocate
the name but just points to the name that was passed
in we can't use stack memory for it. Move the name
into the transport struct.

Reported-by: Stanislaw Gruszka <sgruszka@redhat.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/iwl-trans.h
drivers/net/wireless/iwlwifi/pcie/trans.c