Commit 2d007197 authored by Niravkumar L Rabara's avatar Niravkumar L Rabara Committed by Greg Kroah-Hartman
Browse files

mtd: rawnand: cadence: fix unchecked dereference



commit 60255f37 upstream.

Add NULL check before variable dereference to fix static checker warning.

Fixes: d76d22b5 ("mtd: rawnand: cadence: use dma_map_resource for sdma address")
Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/e448a22c-bada-448d-9167-7af71305130d@stanley.mountain/


Signed-off-by: default avatarNiravkumar L Rabara <niravkumar.l.rabara@intel.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1cb11ddb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment