Tag: 0282969190495950564fb0a7e6905881339a1ebc

[media] vivid-vid-out: use memdup_user()

Author: Mauro Carvalho Chehab <m.chehab@samsung.com> Instead of allocating and coping from __user, do it using one atomic call. That makes the code simpler. Found by coccinelle. Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab — drivers/media/platform/vivid/vivid-vid-out.c | 10 +++——- 1 file changed, 3 insertions(+), 7 deletions(-)   diff –git a/drivers/media/platform/vivid/vivid-vid-out.c b/drivers/media/platform/vivid/vivid-vid-out.c index c983461..8ed9f6d 100644 — a/drivers/media/platform/vivid/vivid-vid-out.c …

Continue reading