diff options
author | qinyu <qinyu32@huawei.com> | 2023-02-23 16:10:47 +0800 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2023-02-25 01:15:03 +0100 |
commit | bfaecf465a058b167abc7c0dfad985f167ff3af1 (patch) | |
tree | 32a246972c50af20ef073ad4ad056a42adf2e538 /Documentation | |
parent | c142872ea40a99258e2a86bf5c471bcc81752f56 (diff) |
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 'Documentation')
0 files changed, 0 insertions, 0 deletions