diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-07-12 03:41:08 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-07-19 23:00:12 +0000 |
commit | 7ee307c7e88ba0c1aae1791e95c2573c6b1e62cb (patch) | |
tree | e29fdfef5456cbad240bfd6001e61241bf5cacdc /mboxd_windows.c | |
parent | 017e45c3f202116ad09d5abdcaeb88f5b5f52594 (diff) | |
download | phosphor-mboxd-7ee307c7e88ba0c1aae1791e95c2573c6b1e62cb.tar.gz phosphor-mboxd-7ee307c7e88ba0c1aae1791e95c2573c6b1e62cb.zip |
copy_flash: update window size
When a pnor partition is copied to a window, update the window size with
the actual number of blocks copied. This is required in the response of
the V2 Read Window Command.
Change-Id: I2c158df1bd261a4e62b9cbb2765e7623a7fb3dc9
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'mboxd_windows.c')
-rw-r--r-- | mboxd_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mboxd_windows.c b/mboxd_windows.c index 451ecd1..1755c4a 100644 --- a/mboxd_windows.c +++ b/mboxd_windows.c @@ -417,7 +417,6 @@ void close_current_window(struct mbox_context *context, bool set_bmc_event, context->current->age = 0; } - context->current->size = context->windows.default_size; context->current = NULL; context->current_is_write = false; } @@ -627,6 +626,7 @@ int create_map_window(struct mbox_context *context, reset_window(context, cur); return rc; } + cur->size = rc; /* * Since for V1 windows aren't constrained to start at multiples of |