From: Dan Williams Date: Sun, 22 Nov 2009 19:10:10 +0000 (-0700) Subject: shdma: fix initialization error handling X-Git-Tag: v2.6.32~52^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56adf7e8127d601b172e180b44551ce83404348f;p=pandora-kernel.git shdma: fix initialization error handling 1/ Error handling code following a kzalloc should free the allocated data. 2/ Report an error when no platform data is detected Both problems fixed by moving the platform data check before the allocation, and allows a goto to be killed. Reported-by: Julia Lawall Acked-by: Julia Lawall Signed-off-by: Dan Williams --- Reading git-diff-tree failed