]> www.infradead.org Git - users/dwmw2/linux.git/commit
firmware: Always initialize the fw_priv list object
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 20 Sep 2018 01:09:38 +0000 (18:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:56:07 +0000 (08:56 +0200)
commit5105f039ef26df26b0ffd830e1e8e36221b47be9
tree41e7016a9c026ea3bf4e81a722ada9f94fbf5697
parentaa26105b73b0a68524f655fc6336e05906843fc2
firmware: Always initialize the fw_priv list object

commit 7012040576c6ae25a47035659ee48673612c2c27 upstream.

When freeing the fw_priv the item is taken off the list. This causes an
oops in the FW_OPT_NOCACHE case as the list object is not initialized.

Make sure to initialize the list object regardless of this flag.

Fixes: 422b3db2a503 ("firmware: Fix security issue with request_firmware_into_buf()")
Cc: stable@vger.kernel.org
Cc: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_loader/main.c