]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/nvdimm/label.c
Merge tag 'selinux-pr-20191007' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / drivers / nvdimm / label.c
index 73e197babc2ffb27e954234cf2c1aec64b5cb817..47a4828b8b310df76e5a19339cdc0036770182a9 100644 (file)
@@ -353,11 +353,6 @@ static bool slot_valid(struct nvdimm_drvdata *ndd,
        if (slot != __le32_to_cpu(nd_label->slot))
                return false;
 
-       /* check that DPA allocations are page aligned */
-       if ((__le64_to_cpu(nd_label->dpa)
-                               | __le64_to_cpu(nd_label->rawsize)) % SZ_4K)
-               return false;
-
        /* check checksum */
        if (namespace_label_has(ndd, checksum)) {
                u64 sum, sum_save;