We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e96d9a9 commit feb72e9Copy full SHA for feb72e9
drivers/nvdimm/pfn_devs.c
@@ -601,14 +601,12 @@ int nd_pfn_validate(struct nd_pfn *nd_pfn, const char *sig)
601
return -EOPNOTSUPP;
602
}
603
604
- if (!IS_ALIGNED(res->start + le32_to_cpu(pfn_sb->start_pad),
605
- memremap_compat_align())) {
+ if (!IS_ALIGNED(res->start + start_pad, memremap_compat_align())) {
606
dev_err(&nd_pfn->dev, "resource start misaligned\n");
607
608
609
610
- if (!IS_ALIGNED(res->end + 1 - le32_to_cpu(pfn_sb->end_trunc),
611
+ if (!IS_ALIGNED(res->end + 1 - end_trunc, memremap_compat_align())) {
612
dev_err(&nd_pfn->dev, "resource end misaligned\n");
613
614
0 commit comments