From: Hans-Christian Egtvedt Date: Mon, 28 Dec 2009 11:22:06 +0000 (+0100) Subject: avr32: clean up memory allocation in at32_add_device_mci X-Git-Tag: v2.6.33-rc8~31^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbf8de1620cdb1abb5b0618ff561004f816064fc;p=pandora-kernel.git avr32: clean up memory allocation in at32_add_device_mci This patch will check if the kzalloc for the MCI DMA struct actually returns a valid address, and also clean up properly if it fails or the function fails at a later stage. This also silences a compiler warning about using the slave variable uninitialized. Signed-off-by: Hans-Christian Egtvedt Signed-off-by: Haavard Skinnemoen --- Reading git-diff-tree failed