super-ddf: sysfs_read() takes a pointer as device name argument
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
parent
a3476c9223
commit
a0628abf2b
|
@ -3557,7 +3557,7 @@ static int load_super_ddf_all(struct supertype *st, int fd,
|
||||||
char nm[20];
|
char nm[20];
|
||||||
int dfd;
|
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)
|
if (!sra)
|
||||||
return 1;
|
return 1;
|
||||||
if (sra->array.major_version != -1 ||
|
if (sra->array.major_version != -1 ||
|
||||||
|
|
Loading…
Reference in New Issue