Whamcloud - gitweb
LU-8066 obd: harden debugfs handling 75/35575/2
authorJames Simmons <jsimmons@infradead.org>
Fri, 19 Jul 2019 22:39:04 +0000 (18:39 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 27 Jul 2019 00:22:34 +0000 (00:22 +0000)
commit44d450890f43502cea21e0460dab7ae3bed810d9
tree268dcb74f0c8bc32fec1f561e91973aa727abfb4
parent5595f7b429ded89d9925ec98696da1a1727034e7
LU-8066 obd: harden debugfs handling

While the seq_file private data shouldn't disappear from under
us just in case always test if the private field is set. If
not return -ENODEV for debugfs read and write operations.

Change-Id: I28614994e8ec29f360ab534534a5869b0bf60d4b
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/35575
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lprocfs_status.h