Use map_sysmem when accessing memory in setexpr
authorJoe Hershberger <joe.hershberger@ni.com>
Mon, 11 May 2015 18:53:13 +0000 (13:53 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 14 May 2015 11:03:15 +0000 (07:03 -0400)
commit2068cea1731c7ec22a37acc0942357bf3b389001
tree8908ad04476891bbbe948aaa99cf727c22a01518
parent9597494ebfb60418e8a0e7565cca2b7d25512bf5
Use map_sysmem when accessing memory in setexpr

The setexpr command used to segfault when accessing memory in sandbox.
The pointer accesses should be mapped.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/cmd_setexpr.c