summaryrefslogtreecommitdiff
path: root/drivers/char/applicom.h
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2018-02-28 17:09:49 +0300
committerCorey Minyard <cminyard@mvista.com>2018-03-07 04:47:17 +0300
commitcc095f0ac1f7c200e51a5c2a78a43c9f42049dbb (patch)
treecea28774af6227161791960af5b705b0999d9c88 /drivers/char/applicom.h
parent243ac21035176ac9692c1308a9f3b8f6a4e5d733 (diff)
downloadlinux-cc095f0ac1f7c200e51a5c2a78a43c9f42049dbb.tar.xz
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>
Diffstat (limited to 'drivers/char/applicom.h')
0 files changed, 0 insertions, 0 deletions