summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-11-12 14:12:44 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-11-12 14:12:44 +0100
commitdf0edba18eb53cd109b61da22285503419d5f227 (patch)
tree0cce10a3d15eab5913690fe2378ec1aa5def75e5
parent63eae4339a865935b02c8025136f9a9bed83c0b0 (diff)
downloadrockbox-df0edba.tar.gz
rockbox-df0edba.zip
hwstub: fix horrible bug
It's a wonder it worked, basically any big transfer returned garbage Change-Id: Ic2b2fc1805423c70db8eac40692ba842c72462ab
-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)
while(sz > 0)
{
size_t xfer = std::min(sz, get_buffer_size());
- err = read_dev(addr, buf, xfer, atomic);
+ err = read_dev(addr, bufp, xfer, atomic);
if(err != error::SUCCESS)
return err;
sz -= xfer;