Skip to content

Commit 6e8e752

Browse files
committed
Merge tag 'edac_urgent_for_v5.17_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras
Pull EDAC fix from Borislav Petkov: "Fix a long-standing struct alignment bug in the EDAC struct allocation code" * tag 'edac_urgent_for_v5.17_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras: EDAC: Fix calculation of returned address and next offset in edac_align_ptr()
2 parents e268d70 + f8efca9 commit 6e8e752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/edac_mc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void *edac_align_ptr(void **p, unsigned int size, int n_elems)
215215
else
216216
return (char *)ptr;
217217

218-
r = (unsigned long)p % align;
218+
r = (unsigned long)ptr % align;
219219

220220
if (r == 0)
221221
return (char *)ptr;

0 commit comments

Comments
 (0)