git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nfs: fix panic when nfs4_ff_layout_prepare_ds() fails
[sfrench/cifs-2.6.git]
/
fs
/
nfs
/
flexfilelayout
/
flexfilelayout.c
diff --git
a/fs/nfs/flexfilelayout/flexfilelayout.c
b/fs/nfs/flexfilelayout/flexfilelayout.c
index ef817a0475ffa6508a0d663b3fa4f7f29ebd58af..3e724cb7ef01d87f3d49c57ab83ca81fd781c4f9 100644
(file)
--- a/
fs/nfs/flexfilelayout/flexfilelayout.c
+++ b/
fs/nfs/flexfilelayout/flexfilelayout.c
@@
-2016,7
+2016,7
@@
static void ff_layout_cancel_io(struct pnfs_layout_segment *lseg)
for (idx = 0; idx < flseg->mirror_array_cnt; idx++) {
mirror = flseg->mirror_array[idx];
mirror_ds = mirror->mirror_ds;
- if (
!mirror_ds
)
+ if (
IS_ERR_OR_NULL(mirror_ds)
)
continue;
ds = mirror->mirror_ds->ds;
if (!ds)