summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-07-19 22:53:50 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-07-31 09:45:51 +0200
commitbdc4e58d5395fb45e22a54e01312f1abb22523ef (patch)
treeec023835f1b4ce202ac8f43f81ab62c9253bc360 /arch
parent760c435e0f85ed19e48a90d746ce1de2cd02def7 (diff)
mtd: rawnand: s3c2410: Error out when ->nrsets < 0 or ->sets == NULL
All of the code in the probe path assumes ->sets != NULL and ->nrsets > 0. Error out if that's not the case to avoid dereferencing a NULL pointer. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions