diff options
author | Borislav Petkov (AMD) <bp@alien8.de> | 2023-06-07 10:50:07 +0200 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-06-07 10:50:07 +0200 |
commit | 0a81fa5d74cd8746002d137c47c80a4e8d3a4633 (patch) | |
tree | 94dfd198156e59fd40e5f8b2365ba1d7159f4494 /drivers/edac | |
parent | 6c79e42169fe10308d72051950c411b3524c7aa9 (diff) | |
parent | bf5c04ddd378dbd62d41d9c5bd18cca03bee2946 (diff) |
Merge ras/edac-misc into for-next
* ras/edac-misc:
EDAC/thunderx: Check debugfs file creation retval properly
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/thunderx_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/thunderx_edac.c b/drivers/edac/thunderx_edac.c index 0bcd9f02c84a..b9c5772da959 100644 --- a/drivers/edac/thunderx_edac.c +++ b/drivers/edac/thunderx_edac.c @@ -481,7 +481,7 @@ static int thunderx_create_debugfs_nodes(struct dentry *parent, ent = edac_debugfs_create_file(attrs[i]->name, attrs[i]->mode, parent, data, &attrs[i]->fops); - if (!ent) + if (IS_ERR(ent)) break; } |