Messages in this thread | | | From | "Koul, Vinod" <> | Subject | RE: [PATCH v2] dmatest: Fix NULL pointer dereference on ioat | Date | Mon, 3 Dec 2012 17:42:00 +0000 |
| |
> On Wed, Nov 14, 2012 at 8:17 AM, viresh kumar <viresh.kumar@linaro.org> wrote: > > On Mon, Nov 12, 2012 at 4:33 AM, Jon Mason <jon.mason@intel.com> wrote: > >> 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 <jon.mason@intel.com> > >> CC: Vinod Koul <vinod.koul@intel.com> > >> CC: Dan Williams <djbw@fb.com> > > > Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Applied, Thanks
-- ~Vinod
| |