iwlwifi: mvm: replace BUG_ON by WARN_ON in scan.c
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 27 Mar 2014 08:06:29 +0000 (10:06 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Apr 2014 06:36:03 +0000 (09:36 +0300)
commit748fa67cb76608457d03f3932874b9baddb4d8bf
tree14711b2009c6f780fe93f2fbd227f0a440265695
parent757cf23b4b4bcede8ffb40947536fbc8722567ab
iwlwifi: mvm: replace BUG_ON by WARN_ON in scan.c

While the scan_cmd should really be allocated in init (and
we do fail init in case the allocation failed), it doesn't
mean we should lock up the machine if something really bad
happened.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c
drivers/net/wireless/iwlwifi/pcie/trans.c