Skip to content
Snippets Groups Projects
Commit 108bb4af authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: 65990d1a ("pNFS/flexfiles: Fix a deadlock on LAYOUTGET")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 1a3466ae
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment