diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-07-19 23:53:50 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-07-31 10:45:51 +0300 |
commit | bdc4e58d5395fb45e22a54e01312f1abb22523ef (patch) | |
tree | ec023835f1b4ce202ac8f43f81ab62c9253bc360 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 760c435e0f85ed19e48a90d746ce1de2cd02def7 (diff) | |
download | linux-bdc4e58d5395fb45e22a54e01312f1abb22523ef.tar.xz |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions