]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
super-ddf: sysfs_read() takes a pointer as device name argument
authorJes Sorensen <jsorensen@fb.com>
Tue, 16 May 2017 17:29:46 +0000 (13:29 -0400)
committerJes Sorensen <jsorensen@fb.com>
Tue, 16 May 2017 17:29:46 +0000 (13:29 -0400)
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-ddf.c

index ac14017bf9512b21fb6ddbc3ec48d34a958dd1c3..50197a8f528b93f994d3fb884ccf9141159216d1 100644 (file)
@@ -3557,7 +3557,7 @@ static int load_super_ddf_all(struct supertype *st, int fd,
        char nm[20];
        int dfd;
 
-       sra = sysfs_read(fd, 0, GET_LEVEL|GET_VERSION|GET_DEVS|GET_STATE);
+       sra = sysfs_read(fd, NULL, GET_LEVEL|GET_VERSION|GET_DEVS|GET_STATE);
        if (!sra)
                return 1;
        if (sra->array.major_version != -1 ||