commit | 108bb4afd351d65826648a47f11fa3104e250d9b | [log] [tgz] |
---|---|---|
author | Trond Myklebust <trond.myklebust@hammerspace.com> | Tue Feb 26 11:19:46 2019 -0500 |
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | Fri Mar 01 16:20:16 2019 -0500 |
tree | 5424da4ab5c98f6c7bc56894b49b55cd246033bd | |
parent | 1a3466aed3a17eed41cd9411f89eb637f58349b0 [diff] |
NFSv4/flexfiles: Fix invalid deref in FF_LAYOUT_DEVID_NODE() If the attempt to instantiate the mirror's layout DS pointer failed, then that pointer may hold a value of type ERR_PTR(), so we need to check that before we dereference it. Fixes: 65990d1afbd2d ("pNFS/flexfiles: Fix a deadlock on LAYOUTGET") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>