]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-ddf.c
Use dev_open in validate geometry container
[thirdparty/mdadm.git] / super-ddf.c
index 80a40f84ab2f31a4dba7db40fb1d04b466fdacbf..dc8e512f36d4d247c4495c00ccfdbc32cda23424 100644 (file)
@@ -3463,7 +3463,7 @@ validate_geometry_ddf_container(struct supertype *st,
        if (!dev)
                return 1;
 
-       fd = open(dev, O_RDONLY|O_EXCL, 0);
+       fd = dev_open(dev, O_RDONLY|O_EXCL);
        if (fd < 0) {
                if (verbose)
                        pr_err("ddf: Cannot open %s: %s\n",