diff options
author | Dave Airlie <airlied@redhat.com> | 2017-04-10 17:40:42 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-04-10 17:40:42 -0400 |
commit | b769fefb68cd70385d68220ae341e5a10723fbc0 (patch) | |
tree | a2881410c9dc5a3474619d155fac981cfbd4ee8f /fs/nfs/flexfilelayout/flexfilelayoutdev.c | |
parent | 1420f63b8207e966f54caec26d08abdc2ff37193 (diff) | |
parent | 39da7c509acff13fc8cb12ec1bb20337c988ed36 (diff) |
Backmerge tag 'v4.11-rc6' into drm-next
Linux 4.11-rc6
drm-misc needs 4.11-rc5, may as well fix conflicts with rc6.
Diffstat (limited to 'fs/nfs/flexfilelayout/flexfilelayoutdev.c')
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayoutdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayoutdev.c b/fs/nfs/flexfilelayout/flexfilelayoutdev.c index 85fde93dff77..457cfeb1d5c1 100644 --- a/fs/nfs/flexfilelayout/flexfilelayoutdev.c +++ b/fs/nfs/flexfilelayout/flexfilelayoutdev.c | |||
@@ -208,6 +208,10 @@ static bool ff_layout_mirror_valid(struct pnfs_layout_segment *lseg, | |||
208 | } else | 208 | } else |
209 | goto outerr; | 209 | goto outerr; |
210 | } | 210 | } |
211 | |||
212 | if (IS_ERR(mirror->mirror_ds)) | ||
213 | goto outerr; | ||
214 | |||
211 | if (mirror->mirror_ds->ds == NULL) { | 215 | if (mirror->mirror_ds->ds == NULL) { |
212 | struct nfs4_deviceid_node *devid; | 216 | struct nfs4_deviceid_node *devid; |
213 | devid = &mirror->mirror_ds->id_node; | 217 | devid = &mirror->mirror_ds->id_node; |