Home
last modified time | relevance | path

Searched hist:cc095f0ac1f7c200e51a5c2a78a43c9f42049dbb (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/char/ipmi/
H A Dipmi_si_intf.cdiff cc095f0ac1f7c200e51a5c2a78a43c9f42049dbb Wed Feb 28 08:09:49 CST 2018 Corey Minyard <cminyard@mvista.com> ipmi: Fix some error cleanup issues

device_remove_group() was called on any cleanup, even if the
device attrs had not been added yet. That can occur in certain
error scenarios, so add a flag to know if it has been added.

Also make sure we remove the dev if we added it ourselves.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: stable@vger.kernel.org # 4.15
Cc: Laura Abbott <labbott@redhat.com>
Tested-by: Bill Perkins <wmp@grnwood.net>