From: Jon Mason Date: Sun, 11 Nov 2012 23:03:20 +0000 (+0000) Subject: dmatest: Fix NULL pointer dereference on ioat X-Git-Tag: v3.9-rc1~80^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=944ea4dd38b8575e30a5699633c81945bff1864d;p=pandora-kernel.git dmatest: Fix NULL pointer dereference on ioat device_control is an optional and not implemented in all DMA drivers. Any calls to these will result in a NULL pointer dereference. dmatest makes two of these calls when completing the kernel thread and removing the module. These are corrected by calling the dmaengine_device_control wrapper and checking for a non-existant device_control function pointer there. Signed-off-by: Jon Mason CC: Vinod Koul CC: Dan Williams Reviewed-by: Viresh Kumar Signed-off-by: Vinod Koul --- Reading git-diff-tree failed