From: Dinar Valeev Date: Tue, 21 May 2013 12:22:55 +0000 (+0200) Subject: Double block_buffer X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=commitdiff_plain;h=refs%2Fheads%2Fdevel;ds=sidebyside Double block_buffer We have block_buffer equal to MAX_BLOCK_SIZE. If we're working with 4k aligned device, it is not enough, since we're reading too blocks. Let's double it. Signed-off-by: Dinar Valeev Signed-off-by: Tony Breeds --- diff --git a/second/partition.c b/second/partition.c index d805ad0..1ade1b6 100644 --- a/second/partition.c +++ b/second/partition.c @@ -64,7 +64,7 @@ static const char *valid_mac_partition_types[] = { #define MAX_BLOCK_SIZE 4096 -static unsigned char block_buffer[MAX_BLOCK_SIZE]; +static unsigned char block_buffer[MAX_BLOCK_SIZE * 2]; static void add_new_partition(struct partition_t** list, int part_number, const char *part_type,