diff options
author | Minjie Du <[email protected]> | 2023-07-13 12:24:12 +0800 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2023-08-16 09:54:32 +0200 |
commit | 19ad9f29751ca385262c63f513f75610962c40a0 (patch) | |
tree | cb5cf80337aa6498593409bb69552dab0c748370 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 2bba1acf7a4cbe62abbb4c686e0414209ec5943b (diff) |
thermal/drivers/mediatek/lvts: Fix parameter check in lvts_debugfs_init()
The documentation says "If an error occurs, ERR_PTR(-ERROR) will be
returned" but the current code checks against a NULL pointer returned.
Fix this by checking if IS_ERR().
Signed-off-by: Minjie Du <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions