aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSudip Mukherjee <[email protected]>2015-09-10 16:48:13 +0530
committerMark Brown <[email protected]>2015-09-11 13:26:38 +0100
commitdd85ebf681ef0ee1fc985c353dd45e8b53b5dc1e (patch)
treef98f45ded2eb2d7af97cf59515f30de61c669f5c /tools/perf/scripts/python/export-to-postgresql.py
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff)
spi: spidev: fix possible NULL dereference
During the last close we are freeing spidev if spidev->spi is NULL, but just before checking if spidev->spi is NULL we are dereferencing it. Lets add a check there to avoid the NULL dereference. Fixes: 9169051617df ("spi: spidev: Don't mangle max_speed_hz in underlying spi device") Signed-off-by: Sudip Mukherjee <[email protected]> Reviewed-by: Jarkko Nikula <[email protected]> Tested-by: Jarkko Nikula <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions