]> Git Repo - linux.git/commit
mtd: rawnand: Add a check in of_get_nand_secure_regions()
authorDan Carpenter <[email protected]>
Thu, 17 Jun 2021 13:37:25 +0000 (16:37 +0300)
committerMiquel Raynal <[email protected]>
Thu, 15 Jul 2021 22:49:15 +0000 (00:49 +0200)
commit14f97f0b8e2b9950c028d0cb7311ffe26a3cc1c0
treee1cf0a5b2829c560592e124a07bf3a49c60cd09b
parent2b6d2833cd1d8a43a837a45da65860ef086443dc
mtd: rawnand: Add a check in of_get_nand_secure_regions()

Check for whether of_property_count_elems_of_size() returns a negative
error code.

Fixes: 13b89768275d ("mtd: rawnand: Add support for secure regions in NAND memory")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/YMtQFXE0F1w7mUh+@mwanda
drivers/mtd/nand/raw/nand_base.c
This page took 0.058747 seconds and 4 git commands to generate.