diff options
| author | 2023-02-23 16:10:47 +0800 | |
|---|---|---|
| committer | 2023-02-25 01:15:03 +0100 | |
| commit | bfaecf465a058b167abc7c0dfad985f167ff3af1 (patch) | |
| tree | 32a246972c50af20ef073ad4ad056a42adf2e538 /include/uapi/linux/byteorder/ssh:/git:/git.zx2c4.com | |
| parent | power: reset: odroid-go-ultra: fix I2C dependency (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 'include/uapi/linux/byteorder/ssh:/git:/git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
