summaryrefslogtreecommitdiff
path: root/utils/hwstub/lib/hwstub.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hwstub/lib/hwstub.cpp')
-rw-r--r--utils/hwstub/lib/hwstub.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/hwstub/lib/hwstub.cpp b/utils/hwstub/lib/hwstub.cpp
index 7c81146c77..9dd2915903 100644
--- a/utils/hwstub/lib/hwstub.cpp
+++ b/utils/hwstub/lib/hwstub.cpp
@@ -444,7 +444,10 @@ error handle::write(uint32_t addr, const void *buf, size_t& sz, bool atomic)
444 size_t xfer = std::min(sz, get_buffer_size()); 444 size_t xfer = std::min(sz, get_buffer_size());
445 err = write_dev(addr, buf, xfer, atomic); 445 err = write_dev(addr, buf, xfer, atomic);
446 if(err != error::SUCCESS) 446 if(err != error::SUCCESS)
447 {
448 sz = cnt;
447 return err; 449 return err;
450 }
448 sz -= xfer; 451 sz -= xfer;
449 bufp += xfer; 452 bufp += xfer;
450 addr += xfer; 453 addr += xfer;