summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-04-11 01:44:30 +0300
committerMark Brown <broonie@kernel.org>2018-04-26 15:53:29 +0300
commitbdf3a3b59a7ab1972e7d2242c9466ba7e79f0004 (patch)
tree908e4ca051d1936ec6dbdca0f300165cd061cfcc /tools/perf/scripts/python/export-to-postgresql.py
parent0d7412ed1f5dc0858eb4f29650a8c9c5cce8b285 (diff)
downloadlinux-bdf3a3b59a7ab1972e7d2242c9466ba7e79f0004.tar.xz
spi: Check presence the of ->transfer[_xxx]() before registering a controller
Right now, no checks are done on the presence of a ->transfer[_xxx]() method, which can lead to a NULL pointer dereference when someone starts sending something on the bus. Do the check at registration time and refuse to add the controller if all ->transfer[_xxx]() pointers are NULL. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions