X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=super-intel.c;h=433fa464ce9e1fbf1fb99f23a6e12f57ae52b7fb;hp=6ef2e5198ac1b8b157dfa88c95a8eaeed334d739;hb=92bd8f8d3f2c9c7733f92a062a0752d9b9997673;hpb=4d1313e9017e2608bfd2d01f854c19e23f7daf62 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);