diff options
author | Jon Mason <[email protected]> | 2012-11-11 23:03:20 +0000 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2013-01-07 22:05:05 -0800 |
commit | 944ea4dd38b8575e30a5699633c81945bff1864d (patch) | |
tree | 7883205efd57c7c1e95ad2cb2bed59bde165ecc8 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | e4d43c1764bc3ee1150f24e530db2b5b23e91425 (diff) |
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 <[email protected]>
CC: Vinod Koul <[email protected]>
CC: Dan Williams <[email protected]>
Reviewed-by: Viresh Kumar <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions