staging: unisys: visorbus: Fix memory leak
authorZachary Dremann <dremann@gmail.com>
Mon, 17 Jul 2017 20:17:03 +0000 (16:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jul 2017 06:48:42 +0000 (08:48 +0200)
commit661a215bc3a8decfe0defd2637bb3a13aba36d49
tree3358c3ca42b09b38d934e3f4c2bfa1b0f59b6336
parent403043c4e1709845deb4553a96ed30505378d71e
staging: unisys: visorbus: Fix memory leak

The name of a visor_device was never freed, which was allocated in
visorbus_configure.

It is expected that visorbus_device_destroy will not be called on the
same visor_device again, or this would be a double free.

Signed-off-by: Zachary Dremann <dremann@gmail.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: David Binder <david.binder@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchipset.c