summary refs log tree commit diff stats
path: root/hw/timer/cmsdk-apb-timer.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2018-07-09 14:23:05 +1000
committerDavid Gibson <david@gibson.dropbear.id.au>2018-07-09 14:23:05 +1000
commitad633de6f5a08ad8e9b74e2372863101239c2cc3 (patch)
tree32b8ef6ecafb8153dc3ac23b72078f858dfa8ec0 /hw/timer/cmsdk-apb-timer.c
parent9ba58cb47fbc9a5141a4b3e66924f9431ea81da0 (diff)
downloadfocaccia-qemu-ad633de6f5a08ad8e9b74e2372863101239c2cc3.tar.gz
focaccia-qemu-ad633de6f5a08ad8e9b74e2372863101239c2cc3.zip
sam460ex: Check for errors from libfdt functions
In a couple of places sam460ex_load_device_tree() calls "raw" libfdt
functions which can fail, but doesn't check for error codes.  At best,
if these fail the guest will be silently started in a non-standard state,
or it could fail entirely.

Fix this by using the _FDT() helper macro which aborts on a libfdt failure.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/timer/cmsdk-apb-timer.c')
0 files changed, 0 insertions, 0 deletions