diff options
author | 2018-07-19 22:53:50 +0200 | |
---|---|---|
committer | 2018-07-31 09:45:51 +0200 | |
commit | bdc4e58d5395fb45e22a54e01312f1abb22523ef (patch) | |
tree | ec023835f1b4ce202ac8f43f81ab62c9253bc360 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | mtd: rawnand: make subop helpers return unsigned values (diff) | |
download | linux-dev-bdc4e58d5395fb45e22a54e01312f1abb22523ef.tar.xz linux-dev-bdc4e58d5395fb45e22a54e01312f1abb22523ef.zip |
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/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions