Tag: 4eaa3a6cc4c577103d678492ec50979b3aa360a4

[media] drivers: media: platform: vivid: Fix possible null derefrence

Author: Tapasweni Pathak <tapaswenipathak@gmail.com> Check for dev_fmt being null before derefrencing it, to assign it to planes. Found using Coccinelle. Signed-off-by: Tapasweni Pathak Acked-by: Julia Lawall Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab — drivers/media/platform/vivid/vivid-vid-out.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)   diff –git a/drivers/media/platform/vivid/vivid-vid-out.c b/drivers/media/platform/vivid/vivid-vid-out.c index 39ff79f..8f081bb 100644 — a/drivers/media/platform/vivid/vivid-vid-out.c …

Continue reading