]> git.baikalelectronics.ru Git - kernel.git/commit
pnfs/flexfiles: Fix PTR_ERR() dereferences in ff_layout_track_ds_error
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 17 Jul 2019 17:57:44 +0000 (13:57 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 18 Jul 2019 18:43:52 +0000 (14:43 -0400)
commitf2a29e233262dbb904633beeb29b5a54cf8afe59
tree83b3e8539189ad81a5f756e94ae7e3f2dbc8c76a
parent0265f53f7c551105bba126614aa94375ccc1d6fe
pnfs/flexfiles: Fix PTR_ERR() dereferences in ff_layout_track_ds_error

mirror->mirror_ds can be NULL if uninitialised, but can contain
a PTR_ERR() if call to GETDEVICEINFO failed.

Fixes: cbe4f330b5e0 ("pNFS/flexfiles: Fix a deadlock on LAYOUTGET")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # 4.10+
fs/nfs/flexfilelayout/flexfilelayoutdev.c