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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hwstub/lib/hwstub.cpp b/utils/hwstub/lib/hwstub.cpp
index f8e925a0b8..ba9ecb7f06 100644
--- a/utils/hwstub/lib/hwstub.cpp
+++ b/utils/hwstub/lib/hwstub.cpp
@@ -414,7 +414,7 @@ error handle::read(uint32_t addr, void *buf, size_t& sz, bool atomic)
414 while(sz > 0) 414 while(sz > 0)
415 { 415 {
416 size_t xfer = std::min(sz, get_buffer_size()); 416 size_t xfer = std::min(sz, get_buffer_size());
417 err = read_dev(addr, buf, xfer, atomic); 417 err = read_dev(addr, bufp, xfer, atomic);
418 if(err != error::SUCCESS) 418 if(err != error::SUCCESS)
419 return err; 419 return err;
420 sz -= xfer; 420 sz -= xfer;