summaryrefslogtreecommitdiffstats
path: root/Documentation/PCI/pcieaer-howto.txt
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@sony.com>2018-10-05 05:40:21 +0200
committerFrank Rowand <frank.rowand@sony.com>2018-11-09 07:12:37 +0100
commiteeb07c573ec307c53fe2f6ac6d8d11c261f64006 (patch)
treec6f825e39534e2b3e936cd358ad9316f324a6489 /Documentation/PCI/pcieaer-howto.txt
parentof: unittest: find overlays[] entry by name instead of index (diff)
downloadlinux-eeb07c573ec307c53fe2f6ac6d8d11c261f64006.tar.xz
linux-eeb07c573ec307c53fe2f6ac6d8d11c261f64006.zip
of: unittest: initialize args before calling of_*parse_*()
Callers of of_irq_parse_one() blindly use the pointer args.np without checking whether of_irq_parse_one() had an error and thus did not set the value of args.np. Initialize args to zero so that using the format "%pOF" to show the value of args.np will show "(null)" when of_irq_parse_one() has an error. This prevents the dereference of a random value. Make the same fix for callers of of_parse_phandle_with_args() and of_parse_phandle_with_args_map(). Reported-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Alan Tull <atull@kernel.org> Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Diffstat (limited to 'Documentation/PCI/pcieaer-howto.txt')
0 files changed, 0 insertions, 0 deletions