diff options
| author | Rafael J. Wysocki <[email protected]> | 2023-01-20 20:46:57 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-01-23 14:47:18 +0100 |
| commit | 0b2a1a3938aad80fb19cb53cbbd4679eeb37e3a8 (patch) | |
| tree | d3b4fd0b0545eced739dc8a70bdd76f1abdec4f4 /tools/perf/scripts/python | |
| parent | f89fd04323f755e7437a0113d986812c3fffe03d (diff) | |
driver core: class: Clear private pointer on registration failures
Clear the class private pointer if __class_register() fails for it, so
as to allow its users to verify that the class is usable by checking
the value of that pointer.
For consistency, clear that pointer before freeing the object pointed
to by it in class_release().
Signed-off-by: Rafael J. Wysocki <[email protected]>
Link: https://lore.kernel.org/r/4463268.LvFx2qVVIh@kreacher
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions