Files
Corey Minyard a49781b632 ipmi: Fix some error cleanup issues
commit cc095f0ac1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-19 08:54:05 +02:00
..
2018-04-19 08:54:05 +02:00
2017-08-28 17:11:28 +02:00
…
…
…
…
…
…
…
…
…
2018-02-11 14:34:03 -08:00
…
…
…