commit | 1a2449aa37baf27d61c4232545e90570c42f2e3b | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Thu Mar 12 09:00:00 2020 -0700 |
committer | Rob Landley <rob@landley.net> | Thu Mar 12 11:57:19 2020 -0500 |
tree | 20ce3ffb4e99bd017cf81d43ed57b6b2edfb9036 | |
parent | 6888101456b6e1833aca4882670af4c11553a654 [diff] |
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>