diff options
| author | Ingyu Jang <ingyujang25@korea.ac.kr> | 2026-05-15 04:32:14 +0900 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-05-28 21:24:57 -0700 |
| commit | 4d80db59de9c7b52f75d8f32005dafc8d64658b0 (patch) | |
| tree | da980bce034272ff1701a89992230246ba19aee5 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | f5b1910e23f1233c8d4185268b2e659df2bc5dbf (diff) | |
error-inject: use IS_ERR() check for debugfs_create_file()
debugfs_create_file() returns an error pointer on failure, never NULL, so
the !file check in ei_debugfs_init() never triggers and the
debugfs_remove() cleanup cannot run.
Use IS_ERR() and propagate the actual error via PTR_ERR().
Link: https://lore.kernel.org/20260514193214.2432769-1-ingyujang25@korea.ac.kr
Signed-off-by: Ingyu Jang <ingyujang25@korea.ac.kr>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
