Message ID | 4e7808c8-7619-3a95-a7da-0399f6558dfc@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/v4l2-core/videobuf-dma-sg.c b/drivers/media/v4l2-core/videobuf-dma-sg.c index d09ddf2e56fe..070ba10bbdbc 100644 --- a/drivers/media/v4l2-core/videobuf-dma-sg.c +++ b/drivers/media/v4l2-core/videobuf-dma-sg.c @@ -618,7 +618,7 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q, last = first; /* create mapping + update buffer list */ - map = kmalloc(sizeof(struct videobuf_mapping), GFP_KERNEL); + map = kmalloc(sizeof(*map), GFP_KERNEL); if (!map) { retval = -ENOMEM; goto done;