diff options
author | Greg Kroah-Hartman <[email protected]> | 2019-01-31 14:15:07 +0100 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2019-02-05 09:45:28 -0800 |
commit | ab1ab0eb0cb64d1c225bdf42bee067f81c87e2a4 (patch) | |
tree | 30225b82275a21af2102858a1e61ed23767f1190 /scripts/bpf_helpers_doc.py | |
parent | b2ae318acdcaf1c9562329c9cc1bd2f479157ad2 (diff) |
drm/i915: do not return invalid pointers as a *dentry
When calling debugfs functions, they can now return error values if
something went wrong. If that happens, return a NULL as a *dentry to
the relay core instead of passing it an illegal pointer.
The relay core should be able to handle an illegal pointer, but add this
check to be safe.
Cc: Jani Nikula <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Rodrigo Vivi <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions