ntb: Add error path/handling to Debug FS entry creation
authorGary R Hook <gary.hook@amd.com>
Mon, 15 May 2017 15:33:27 +0000 (10:33 -0500)
committerJon Mason <jdmason@kudzu.us>
Thu, 6 Jul 2017 15:30:08 +0000 (11:30 -0400)
commit32e0f5bfa5aa2a74264160e0990df3af125ca6e2
tree94bbf1cfd38e879fc45fbcadac3f637164804492
parent8407dd6c16c0d92432323c0ce8daecd13e424703
ntb: Add error path/handling to Debug FS entry creation

If a failure occurs when creating Debug FS entries, unroll all of
the work that's been done.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c