diff options
| author | Gustavo A. R. Silva <[email protected]> | 2021-10-15 00:03:45 -0500 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-10-22 15:22:04 +1100 |
| commit | 61cb9ac66b30374c7fd8a8b2a3c4f8f432c72e36 (patch) | |
| tree | 387e0edd1c52d89addbcf8bb580b476e3b4f1793 /scripts/gdb/linux/timerlist.py | |
| parent | 49e3d8ea62482625c3835f0a33ae9c1dda39ea8f (diff) | |
powerpc/vas: Fix potential NULL pointer dereference
(!ptr && !ptr->foo) strikes again. :)
The expression (!ptr && !ptr->foo) is bogus and in case ptr is NULL,
it leads to a NULL pointer dereference: ptr->foo.
Fix this by converting && to ||
This issue was detected with the help of Coccinelle, and audited and
fixed manually.
Fixes: 1a0d0d5ed5e3 ("powerpc/vas: Add platform specific user window operations")
Cc: [email protected]
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Reviewed-by: Tyrel Datwyler <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/20211015050345.GA1161918@embeddedor
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions