Skip to content

Commit

Permalink
[media] davinci: vpbe: fix check for s_dv_preset function pointer
Browse files Browse the repository at this point in the history
fix check for s_dv_preset function pointer to be NULL.
return -EINVAL if function pointer is NULL.

Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Prabhakar Lad authored and Mauro Carvalho Chehab committed Jul 30, 2012
1 parent 3a495ed commit dcf4fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/davinci/vpbe_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dcf4fc2

Please sign in to comment.