sparc: kernel/sbus.c: fix memory leakage
authorCong Ding <dinggnu@gmail.com>
Thu, 17 Jan 2013 03:28:43 +0000 (03:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 22:33:00 +0000 (14:33 -0800)
commit04cef49e84d4e2ddf739cd92f98e938cbab347a5
treec6dfaf087f778e197847ba6b85c7ed86f94d21fb
parent9a9284153d965a57edc7162a8e57c14c97f3a935
sparc: kernel/sbus.c: fix memory leakage

The variable iommu and strbuf are not freed properly if it goes to error.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
Reviewed-by: Richard Mortimer <richm@oldelvet.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sbus.c