diff options
| author | qinyu <[email protected]> | 2023-02-23 16:10:47 +0800 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2023-02-25 01:15:03 +0100 |
| commit | bfaecf465a058b167abc7c0dfad985f167ff3af1 (patch) | |
| tree | 32a246972c50af20ef073ad4ad056a42adf2e538 /lib/crypto/mpi/mpi-cmp.c | |
| 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 <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions