Messages in this thread | | | From | Stephen Boyd <> | Subject | Re: [PATCH v2] dma-debug: Check for drivers mapping invalid addresses in dma_map_single() | Date | Sun, 07 Oct 2018 21:32:30 -0700 |
| |
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! ;)
| |