diff options
author | Greg Kaiser <gkaiser@google.com> | 2020-03-12 09:00:00 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-03-12 11:57:19 -0500 |
commit | 1a2449aa37baf27d61c4232545e90570c42f2e3b (patch) | |
tree | 20ce3ffb4e99bd017cf81d43ed57b6b2edfb9036 /lib/llist.c | |
parent | 6888101456b6e1833aca4882670af4c11553a654 (diff) | |
download | toybox-1a2449aa37baf27d61c4232545e90570c42f2e3b.tar.gz |
Fix get_block_device_size() for linux
We were incorrectly passing a pointer to a pointer of an
unsigned long long, when we just wanted to pass a pointer
to the unsigned long long. This is especially bad on 32-bit
systems, where we're then writing a 64-bits into a 32-bit value
within ioctl.
We fix this to pass a pointer to the unsigned long long.
Test: On 32-bit device, no longer see native crash from toybox
Bug: http://b/151311535
Signed-off-by: Elliott Hughes <enh@google.com>
Diffstat (limited to 'lib/llist.c')
0 files changed, 0 insertions, 0 deletions