Skip to content
Commit 3c0d64e8 authored by Li Yang's avatar Li Yang
Browse files

soc: fsl: guts: reuse machine name from device tree



Reuse the string machine from the device tree data structure instead
of duplicating the data again.  This also prevents a potential memory
allocation failure that was not handled previously.  Also fixes an early
put of root device node.

Reported-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarLi Yang <leoyang.li@nxp.com>
parent 8a533a7d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment