lkml.org 
[lkml]   [2018]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2] dma-debug: Check for drivers mapping invalid addresses in dma_map_single()
Date
Quoting Robin Murphy (2018-10-02 07:01:42)
> On 01/10/18 22:53, Stephen Boyd wrote:
> > diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
> > index d23fc45c8208..99ccba66c06a 100644
> > --- a/include/linux/dma-mapping.h
> > +++ b/include/linux/dma-mapping.h
> > @@ -231,6 +231,7 @@ static inline dma_addr_t dma_map_single_attrs(struct device *dev, void *ptr,
> > dma_addr_t addr;
> >
> > BUG_ON(!valid_dma_direction(dir));
> > + debug_dma_check_single(dev, ptr, size);
>
> Ahem...
>
> With that (and below) fixed so that it actually compiles,
>
> Reviewed-by: Robin Murphy <robin.murphy@arm.com>

Thanks for checking! ;)

\
 
 \ /
  Last update: 2018-10-08 06:33    [W:0.073 / U:1.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site