diff options
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayoutdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayoutdev.c b/fs/nfs/flexfilelayout/flexfilelayoutdev.c index 19f856f45689..3eda40a320a5 100644 --- a/fs/nfs/flexfilelayout/flexfilelayoutdev.c +++ b/fs/nfs/flexfilelayout/flexfilelayoutdev.c | |||
@@ -257,7 +257,7 @@ int ff_layout_track_ds_error(struct nfs4_flexfile_layout *flo, | |||
257 | if (status == 0) | 257 | if (status == 0) |
258 | return 0; | 258 | return 0; |
259 | 259 | ||
260 | if (mirror->mirror_ds == NULL) | 260 | if (IS_ERR_OR_NULL(mirror->mirror_ds)) |
261 | return -EINVAL; | 261 | return -EINVAL; |
262 | 262 | ||
263 | dserr = kmalloc(sizeof(*dserr), gfp_flags); | 263 | dserr = kmalloc(sizeof(*dserr), gfp_flags); |