aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2019-01-11 14:34:39 +0100
committerBartlomiej Zolnierkiewicz <[email protected]>2019-01-11 14:34:39 +0100
commit00257e0cc550c4a8df5f99c0a4fc74fec0656144 (patch)
tree055287895cdffe74bc44fda43426897b91d5860e /tools/perf/scripts/python/export-to-postgresql.py
parenta01421e4484327fe44f8e126793ed5a48a221e24 (diff)
fbdev: offb: Fix OF node name handling
Commit 5c63e407aaab ("fbdev: Convert to using %pOFn instead of device_node.name") changed how the OF FB driver handles the OF node name. This missed the case where the node name is passed to offb_init_palette_hacks(). This results in a NULL ptr dereference in strncmp and breaks any system except ones using bootx with no display node. Fix this by making offb_init_palette_hacks() use the OF node pointer and use of_node_name_prefix() helper function instead for node name comparisons. This helps in moving all OF node name accesses to helper functions in preparation to remove struct device_node.name pointer. Fixes: 5c63e407aaab ("fbdev: Convert to using %pOFn instead of device_node.name") Reported-by: Mathieu Malaterre <[email protected]> Tested-by: Mathieu Malaterre <[email protected]> Cc: [email protected] # v4.19+ Cc: Elimar Riesebieter <[email protected]> Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions