]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff3986ad1f60c58025d8ae6e9a645aad5cdcd056
treeb643426daa1081462708fee9d79a1a25ed43cca4
parenta5a8be31e7068d782aefe132c13081464c1e2541
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