dmi-id: fix a memory leak in dmi_id_init error path
commit5b232f753a842fa66eab86e51dc76e3929d853af
authorAxel Lin <axel.lin@gmail.com>
Thu, 1 Jul 2010 02:35:07 +0000 (1 10:35 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 5 Aug 2010 20:53:34 +0000 (5 13:53 -0700)
treed12dc476ed350e9fb6a0974a5c7126ef58a5d6a1
parent49c19400f60bbe362202d7e7b3e68cc66040d0fa
dmi-id: fix a memory leak in dmi_id_init error path

This patch adds a missing kfree(dmi_dev) in dmi_id_init error path.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/firmware/dmi-id.c