]> git.baikalelectronics.ru Git - kernel.git/commit
NTB: Fix oops in debugfs when transport is half-up
authorDave Jiang <dave.jiang@intel.com>
Mon, 13 Jul 2015 12:07:11 +0000 (08:07 -0400)
committerJon Mason <jdmason@kudzu.us>
Sun, 9 Aug 2015 20:32:22 +0000 (16:32 -0400)
commitdf9b4a996c2c1a58335147c29cef015844b1f3dc
treedba4fe246963f2d57fa4b80d4b06325f3dea013c
parent2759907550dcee16901de838a167f9cbcb638dd9
NTB: Fix oops in debugfs when transport is half-up

When the remote side is not up, we do not have all the context for the
transport, and that causes NULL ptr access. Have the debugfs reads check
to see if transport is up before we make access.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c