diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2019-05-17 18:12:44 +0800 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2019-05-20 06:51:10 -0500 |
commit | 2f66353963043e1d8dfacfbdf509acc5d3be7698 (patch) | |
tree | ac110bdf7724b7cf9ce9d87cbadd508ec8945787 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff) |
ipmi_si: fix unexpected driver unregister warning
If ipmi_si_platform_init()->platform_driver_register() fails,
platform_driver_unregister() called unconditionally will trigger
following warning,
ipmi_platform: Unable to register driver: -12
------------[ cut here ]------------
Unexpected driver unregister!
WARNING: CPU: 1 PID: 7210 at drivers/base/driver.c:193 driver_unregister+0x60/0x70 drivers/base/driver.c:193
Fix it by adding platform_registered variable, only unregister platform
driver when it is already successfully registered.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Message-Id: <20190517101245.4341-1-wangkefeng.wang@huawei.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions