ipmi: fix memleaking for add_smi when duplicating happen
authorYinghai Lu <yinghai@kernel.org>
Wed, 11 Aug 2010 01:03:10 +0000 (18:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:20 +0000 (08:59 -0700)
commit7faefea66a6d1f0d9da0a18615f57dc969e00d99
treea3035d4e86df7460840e7d4991178375b465b918
parentf46c77c283e514a747aee7e8c4f5afc70274c232
ipmi: fix memleaking for add_smi when duplicating happen

Free the temporary info struct when we have duplicated ones.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Corey Minyard <minyard@acm.org>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Len Brown <len.brown@intel.com>
Cc: Myron Stowe <myron.stowe@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_si_intf.c