]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mei: fix potential NULL-ptr deref
authorJohannes Berg <johannes.berg@intel.com>
Tue, 17 May 2022 09:05:14 +0000 (12:05 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 18 May 2022 10:58:59 +0000 (12:58 +0200)
commitda9dad7563c70aa15fd35d3cf770d1685b5d5be9
tree58eeec6299f8775c8f8cc656415aa7f1a26c0362
parent74fc69e7ed8c81c8e9d7c53c4fbcdd009ce8ae61
iwlwifi: mei: fix potential NULL-ptr deref

If SKB allocation fails, continue rather than using the NULL
pointer.

Coverity CID: 1497650

Cc: stable@vger.kernel.org
Fixes: 146430904911 ("iwlwifi: mei: add the driver to allow cooperation with CSME")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20220517120045.90c1b1fd534e.Ibb42463e74d0ec7d36ec81df22e171ae1f6268b0@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mei/main.c