diff options
author | Jeff LaBundy <[email protected]> | 2022-04-17 16:05:07 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2022-04-17 16:08:58 -0700 |
commit | 66ab05c75642712f382a17a887eb558caa6646e1 (patch) | |
tree | a87902e8d682274d0f87c47174858beb8490ca9b /scripts/gdb/linux/config.py | |
parent | eba697b3c30320933aeb19b0606c2099fe880e51 (diff) |
Input: iqs7222 - avoid dereferencing a NULL pointer
Select callers of iqs7222_parse_props() do not expect a child node
to be derived and returned via pointer. As such, these callers set
**child_node to NULL. However, this pointer is dereferenced in all
cases.
To solve this problem, dereference the pointer only for cases that
expect a child node in the first place. In these cases, the caller
provides a valid pointer.
Fixes: e505edaedcb9 ("Input: add support for Azoteq IQS7222A/B/C")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Jeff LaBundy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions