Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcf4fc2e authored by Prabhakar Lad's avatar Prabhakar Lad Committed by Mauro Carvalho Chehab
Browse files

[media] davinci: vpbe: fix check for s_dv_preset function pointer



fix check for s_dv_preset function pointer to be NULL.
return -EINVAL if function pointer is NULL.

Signed-off-by: default avatarLad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: default avatarManjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 3a495ed7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1083,7 +1083,7 @@ vpbe_display_s_dv_preset(struct file *file, void *priv,
	}

	/* Set the given standard in the encoder */
	if (NULL != vpbe_dev->ops.s_dv_preset)
	if (!vpbe_dev->ops.s_dv_preset)
		return -EINVAL;

	ret = vpbe_dev->ops.s_dv_preset(vpbe_dev, preset);