powerpc/ps3: Fix memory leak in device init
authorMasakazu Mokuno <mokuno@sm.sony.co.jp>
Thu, 30 Oct 2008 08:17:18 +0000 (08:17 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 5 Nov 2008 22:49:35 +0000 (09:49 +1100)
commitd4ad304841a9790d4fa35e51d6aa9baeba631559
tree04a8b4198ec92b70c0eb244155c664c0c4a95818
parent3cc698789a3f44dabc5eed389b6c123caf787c0f
powerpc/ps3: Fix memory leak in device init

Free dynamically allocated device data structures when device registration
fails.  This fixes memory leakage when the registration fails.

Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/ps3/device-init.c