wifi: iwlwifi: fw: allow vmalloc for PNVM image
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Feb 2024 16:02:05 +0000 (18:02 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Feb 2024 14:00:48 +0000 (15:00 +0100)
commit38a3241f2f7d6e863c71cd6f5fabf2a000d89c9f
treeca17ec0dc862f5e30950a256b3d015e469e55201
parentc82a950f63a32c3148db1c6e4a3bd7140a11a95d
wifi: iwlwifi: fw: allow vmalloc for PNVM image

This image can be pretty big (I've seen order-7 allocations!),
and we later have to copy it to DMA memory (in newer FW even
there it won't need to be contiguous), so we can easily deal
with it being in vmalloc. Use kvmemdup()/kvfree() for it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240206175739.9b4c06b5d533.Idf699b36ec95ee36f530355cd2cb1da297a098f1@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c