]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/nfs/flexfilelayout/flexfilelayoutdev.c
Merge tag 'usb-5.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux.git] / fs / nfs / flexfilelayout / flexfilelayoutdev.c
index 19f856f456898389b35c330f68bcc05bf23d39e2..3eda40a320a53ff40a37262391c2eb75741ca8f4 100644 (file)
@@ -257,7 +257,7 @@ int ff_layout_track_ds_error(struct nfs4_flexfile_layout *flo,
        if (status == 0)
                return 0;
 
-       if (mirror->mirror_ds == NULL)
+       if (IS_ERR_OR_NULL(mirror->mirror_ds))
                return -EINVAL;
 
        dserr = kmalloc(sizeof(*dserr), gfp_flags);