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)
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>

No differences found