lkml.org 
[lkml]   [2012]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v2] dmatest: Fix NULL pointer dereference on ioat
Date
> 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


\
 
 \ /
  Last update: 2012-12-03 19:21    [W:0.063 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site