Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prevent panic on bad vfe setup

  • Loading branch information...
commit 86865e86f97bbac15dbf29bbf3148c5c298d9c33 1 parent c8703cf
@jonpry jonpry authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 drivers/media/video/msm/msm_camera.c
View
5 drivers/media/video/msm/msm_camera.c
@@ -257,7 +257,10 @@ struct msm_cam_device *g_pmsm;
void msm_empty_frame_q()
{
- msm_queue_drain(&g_pmsm->sync->frame_q, list_frame);
+ if(!g_pmsm || !g_pmsm->sync)
+ printk("%s: Something bad was null!!! 0x%8.8X\n",__func__,g_pmsm);
+ else
+ msm_queue_drain(&g_pmsm->sync->frame_q, list_frame);
}
static int check_overlap(struct hlist_head *ptype,
Please sign in to comment.
Something went wrong with that request. Please try again.