summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorqinyu <qinyu32@huawei.com>2023-02-23 11:10:47 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2023-02-25 03:15:03 +0300
commitbfaecf465a058b167abc7c0dfad985f167ff3af1 (patch)
tree32a246972c50af20ef073ad4ad056a42adf2e538 /tools/perf/scripts/python/stackcollapse.py
parentc142872ea40a99258e2a86bf5c471bcc81752f56 (diff)
downloadlinux-bfaecf465a058b167abc7c0dfad985f167ff3af1.tar.xz
power: supply: fix null pointer check order in __power_supply_register
There is an null pointer check order issue here: if we have to check !desc and !desc->name anyway, check it before dereferencing it in pr_warn(). Signed-off-by: qinyu <qinyu32@huawei.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions