iwlwifi: warn if firmware image doesn't exist
authorJohannes Berg <johannes.berg@intel.com>
Fri, 25 Oct 2013 10:32:51 +0000 (12:32 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 29 Oct 2013 13:53:50 +0000 (14:53 +0100)
commitbefe9b6fd897e1bfce224b662ce62dd751843c34
treefd7d5901b2d5c92a427d0bbfc6ae234f9dcd508d
parentcbb346f2fc61acf62f97e3dd4da230b12f1cafaf
iwlwifi: warn if firmware image doesn't exist

If the firmware image that we attempt to load doesn't
actually exist we have a broken firmware file or other
code not checking things correctly, so warn in such a
case. Also avoid assigning cur_ucode/ucode_loaded then.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/dvm/ucode.c
drivers/net/wireless/iwlwifi/mvm/fw.c