locking/debug: Fix debugfs API return value checks to use IS_ERR()
authorAtul Kumar Pant <atulpant.linux@gmail.com>
Mon, 7 Aug 2023 12:18:34 +0000 (17:48 +0530)
committerIngo Molnar <mingo@kernel.org>
Tue, 3 Oct 2023 08:11:25 +0000 (10:11 +0200)
commit8788c6c2feb3600ba1a2f84ac5d258af4a284cea
tree03b14651e78537ceaf9c3c01cbfd154df3dafc4e
parentcfa92b6d52071aaa8f27d21affdcb14e7448fbc1
locking/debug: Fix debugfs API return value checks to use IS_ERR()

Update the checking of return values from debugfs_create_file()
and debugfs_create_dir() to use IS_ERR().

Signed-off-by: Atul Kumar Pant <atulpant.linux@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Waiman Long <longman@redhat.com>
Link: https://lore.kernel.org/r/20230807121834.7438-1-atulpant.linux@gmail.com
kernel/locking/lock_events.c