From 92bd8f8d3f2c9c7733f92a062a0752d9b9997673 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sat, 8 Nov 2008 16:03:07 -0700 Subject: [PATCH] imsm: fix uuid_from_super given 'signature' is not constant The version portion of the signature changes depending on the contents of the container. Signed-off-by: Dan Williams --- super-intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/super-intel.c b/super-intel.c index 6ef2e519..433fa464 100644 --- a/super-intel.c +++ b/super-intel.c @@ -751,7 +751,7 @@ static void uuid_from_super_imsm(struct supertype *st, int uuid[4]) struct imsm_dev *dev = NULL; sha1_init_ctx(&ctx); - sha1_process_bytes(super->anchor->sig, MAX_SIGNATURE_LENGTH, &ctx); + sha1_process_bytes(super->anchor->sig, MPB_SIG_LEN, &ctx); sha1_process_bytes(&super->anchor->family_num, sizeof(__u32), &ctx); if (super->current_vol >= 0) dev = get_imsm_dev(super, super->current_vol); -- 2.39.2