aboutsummaryrefslogtreecommitdiff
path: root/hw/nvram/xlnx-bbram.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/nvram/xlnx-bbram.c')
-rw-r--r--hw/nvram/xlnx-bbram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/nvram/xlnx-bbram.c b/hw/nvram/xlnx-bbram.c
index 6ed32adad9..cb245b864c 100644
--- a/hw/nvram/xlnx-bbram.c
+++ b/hw/nvram/xlnx-bbram.c
@@ -124,7 +124,7 @@ static void bbram_bdrv_read(XlnxBBRam *s, Error **errp)
blk_name(s->blk));
}
- if (blk_pread(s->blk, 0, ram, nr) < 0) {
+ if (blk_pread(s->blk, 0, ram, nr, 0) < 0) {
error_setg(errp,
"%s: Failed to read %u bytes from BBRAM backstore.",
blk_name(s->blk), nr);