Message ID | 20160727073706.GA15733@p183.telecom.by (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Alexey On 2016-07-27 09:37, Alexey Dobriyan wrote: > Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> A fix for this issue has been already queued: https://patchwork.linuxtv.org/patch/35582/ > --- > > drivers/media/v4l2-core/videobuf2-dma-contig.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/drivers/media/v4l2-core/videobuf2-dma-contig.c > +++ b/drivers/media/v4l2-core/videobuf2-dma-contig.c > @@ -749,7 +749,7 @@ EXPORT_SYMBOL_GPL(vb2_dma_contig_memops); > int vb2_dma_contig_set_max_seg_size(struct device *dev, unsigned int size) > { > if (!dev->dma_parms) { > - dev->dma_parms = kzalloc(sizeof(dev->dma_parms), GFP_KERNEL); > + dev->dma_parms = kzalloc(sizeof(*dev->dma_parms), GFP_KERNEL); > if (!dev->dma_parms) > return -ENOMEM; > } > > Best regards
--- a/drivers/media/v4l2-core/videobuf2-dma-contig.c +++ b/drivers/media/v4l2-core/videobuf2-dma-contig.c @@ -749,7 +749,7 @@ EXPORT_SYMBOL_GPL(vb2_dma_contig_memops); int vb2_dma_contig_set_max_seg_size(struct device *dev, unsigned int size) { if (!dev->dma_parms) { - dev->dma_parms = kzalloc(sizeof(dev->dma_parms), GFP_KERNEL); + dev->dma_parms = kzalloc(sizeof(*dev->dma_parms), GFP_KERNEL); if (!dev->dma_parms) return -ENOMEM; }
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html