diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-03-02 10:14:59 +1030 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2018-03-19 10:56:07 +1030 |
commit | c2c086852a5c2806ac54865515785ec6f22c5118 (patch) | |
tree | 0b4df4a98efe7bb610578109c51d6d5c239d1e7c | |
parent | ee7af88352486863cbf046886c5e3493bd024766 (diff) | |
download | phosphor-mboxd-c2c086852a5c2806ac54865515785ec6f22c5118.tar.gz phosphor-mboxd-c2c086852a5c2806ac54865515785ec6f22c5118.zip |
test: system: Return memory size rather than mtd size in LPC ioctl
The old behaviour was an outright bug in the system framework. The size
of the LPC reserved memory window has nothing to do with the size of the
flash.
Change-Id: Ie16686ac6df8fb3117fb46aa2eaab082873fd4d0
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r-- | test/system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/system.c b/test/system.c index 3b5a9bd..2068fb9 100644 --- a/test/system.c +++ b/test/system.c @@ -90,7 +90,7 @@ int ioctl(int fd, unsigned long request, ...) va_start(ap, request); info = va_arg(ap, struct aspeed_lpc_ctrl_mapping *); - info->size = mtd.size; + info->size = ctrl.size; va_end(ap); break; } |