aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2022-05-21 10:39:30 +0900
committerStafford Horne <shorne@gmail.com>2022-05-23 17:15:50 +0900
commit83da38d82b2f7ac207646e55be94e8bd642e2c39 (patch)
treec2dee6643ee127c27d9c0e98a6f158b261d34561 /lib/test_fortify/write_overflow-strncpy-src.c
parented3a88d7dbbb924312a707d5f295b7a31e2f8d2d (diff)
openrisc: Allow power off handler overriding
The OpenRISC platform always defines a default pm_power_off hanlder which is only useful for simulators. Having this set also means power management drivers like syscon-power are not able to wire in their own pm_power_off handlers. Fix this by not setting the pm_power_off handler by default and fallback to the simulator power off handler if no handler is set. This has been tested with a new OpenRISC virt platform I am working on for QEMU. https://github.com/stffrdhrn/qemu/commits/or1k-virt Cc: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions