Commit 60255f3
mtd: rawnand: cadence: fix unchecked dereference
Add NULL check before variable dereference to fix static checker warning.
Fixes: d76d22b ("mtd: rawnand: cadence: use dma_map_resource for sdma address")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/e448a22c-bada-448d-9167-7af71305130d@stanley.mountain/
Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>1 parent 4175863 commit 60255f3
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2972 | 2972 | | |
2973 | 2973 | | |
2974 | 2974 | | |
2975 | | - | |
2976 | | - | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
2977 | 2979 | | |
2978 | 2980 | | |
2979 | 2981 | | |
| |||
0 commit comments