Skip to content
Commit bf5c04dd authored by Yeqi Fu's avatar Yeqi Fu Committed by Borislav Petkov (AMD)
Browse files

EDAC/thunderx: Check debugfs file creation retval properly



edac_debugfs_create_file() returns ERR_PTR by way of the respective
debugfs function it calls, if an error occurs.

The appropriate way to verify for errors is to use IS_ERR(). Do so.

  [ bp: Rewrite all text. ]

Signed-off-by: default avatarYeqi Fu <asuk4.q@gmail.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230517173111.365787-1-asuk4.q@gmail.com
parent ac9a7868
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment