f3probe: fix allocation error of safe device

probe_device_max_blocks() was returning an int that once multiplied
by block_size was out range.
This patch just enforces probe_device_max_blocks() to return
an uint64_t, and does the needed adjustments in the code.
This commit is contained in:
Michel Machado
2015-11-13 14:40:43 -05:00
parent 591ad8a7bf
commit e3fe7a006d
4 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
#include "libdevs.h"
int probe_device_max_blocks(struct device *dev);
uint64_t probe_device_max_blocks(struct device *dev);
int probe_device(struct device *dev, uint64_t *preal_size_byte,
uint64_t *pannounced_size_byte, int *pwrap,