summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorHongling Zeng <zenghongling@kylinos.cn>2026-05-13 12:28:59 +0300
committerAnna Schumaker <anna.schumaker@hammerspace.com>2026-06-08 17:21:55 +0300
commit37957478be021b92981aa4c99b69f308d3b784d0 (patch)
treeb7b818c7257a8a1041ff9adfecbc4097006be791 /scripts/const_structs.checkpatch
parentbd5e6b056bd0900d8efde90da7a5877dc50842c7 (diff)
downloadlinux-37957478be021b92981aa4c99b69f308d3b784d0.tar.xz
sunrpc: Fix error handling in rpc_sysfs_xprt_switch_add_xprt_store()
xprt_create_transport() never returns NULL, only valid pointers or error pointers. Using IS_ERR_OR_NULL() is incorrect, and PTR_ERR(NULL) would return 0, which indicates EOF in a sysfs store function. Fix this by using IS_ERR() instead of IS_ERR_OR_NULL(). Fixes: df210d9b0951 ("sunrpc: Add a sysfs file for adding a new xprt") Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn> Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions