Commit fbed1de
Mamatha Inamdar
powerpc/powernv: Add a null pointer check in opal_powercap_init()
JIRA: https://issues.redhat.com/browse/RHEL-37050
CVE: CVE-2023-52696
commit e123015
Author: Kunwu Chan <chentao@kylinos.cn>
Date: Sun Nov 26 17:57:39 2023 +0800
powerpc/powernv: Add a null pointer check in opal_powercap_init()
kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.
Fixes: b9ef7b4 ("powerpc: Convert to using %pOFn instead of device_node.name")
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231126095739.1501990-1-chentao@kylinos.cn
Signed-off-by: Mamatha Inamdar <minamdar@redhat.com>1 parent 6c1de86 commit fbed1de
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
199 | 205 | | |
200 | 206 | | |
201 | 207 | | |
| |||
0 commit comments