16 lines
463 B
Diff
16 lines
463 B
Diff
|
--- mdadm-3.0-devel2/super-intel.c.undef 2009-02-13 15:09:40.000000000 -0500
|
||
|
+++ mdadm-3.0-devel2/super-intel.c 2009-02-13 15:09:58.000000000 -0500
|
||
|
@@ -271,8 +271,10 @@ static __u32 __gen_imsm_checksum(struct
|
||
|
__u32 *p = (__u32 *) mpb;
|
||
|
__u32 sum = 0;
|
||
|
|
||
|
- while (end--)
|
||
|
- sum += __le32_to_cpu(*p++);
|
||
|
+ while (end--) {
|
||
|
+ sum += __le32_to_cpu(*p);
|
||
|
+ p++;
|
||
|
+ }
|
||
|
|
||
|
return sum - __le32_to_cpu(mpb->check_sum);
|
||
|
}
|