linux-stable/fs/nfs/flexfilelayout
Trond Myklebust 9ed8e8f684 NFSv4/flexfiles: Fix invalid deref in FF_LAYOUT_DEVID_NODE()
[ Upstream commit 108bb4afd3 ]

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: 65990d1afb ("pNFS/flexfiles: Fix a deadlock on LAYOUTGET")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:29 +01:00
..
flexfilelayout.c flexfiles: enforce per-mirror stateid only for v4 DSes 2018-12-17 09:24:41 +01:00
flexfilelayout.h NFSv4/flexfiles: Fix invalid deref in FF_LAYOUT_DEVID_NODE() 2020-01-27 14:50:29 +01:00
flexfilelayoutdev.c pnfs/flexfiles: Fix PTR_ERR() dereferences in ff_layout_track_ds_error 2019-07-26 09:14:22 +02:00
Makefile