From: Russell King Date: Thu, 12 Dec 2013 23:59:08 +0000 (+0000) Subject: dmaengine: mv_xor: fix oops when channels fail to initialise X-Git-Tag: v3.13-rc5~12^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0be8253fa2b4385e6246387db1d6067366e987ba;p=pandora-kernel.git dmaengine: mv_xor: fix oops when channels fail to initialise When a channel fails to initialise, we error out and clean up any previously unregistered channels by walking the entire xordev->channels array. Unfortunately, there are paths which end up storing an error pointer in this array, which we then try and dereference in the cleanup code, which causes an oops. Fix this by avoiding writing invalid pointers to this array in the first place. Tested-by: Aaro Koskinen Signed-off-by: Russell King Signed-off-by: Dan Williams --- Reading git-diff-tree failed