summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/media/platform/msm/camera_v2/msm_vb2/msm_vb2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/msm/camera_v2/msm_vb2/msm_vb2.c b/drivers/media/platform/msm/camera_v2/msm_vb2/msm_vb2.c
index e0cd3829ec44..35635c932456 100644
--- a/drivers/media/platform/msm/camera_v2/msm_vb2/msm_vb2.c
+++ b/drivers/media/platform/msm/camera_v2/msm_vb2/msm_vb2.c
@@ -249,7 +249,7 @@ static int msm_vb2_put_buf(struct vb2_v4l2_buffer *vb, int session_id,
if (vb2_v4l2_buf == vb)
break;
}
- if (vb2_v4l2_buf != vb) {
+ if (WARN_ON(vb2_v4l2_buf != vb)) {
pr_err("VB buffer is INVALID vb=%p, ses_id=%d, str_id=%d\n",
vb, session_id, stream_id);
spin_unlock_irqrestore(&stream->stream_lock, flags);
@@ -291,7 +291,7 @@ static int msm_vb2_buf_done(struct vb2_v4l2_buffer *vb, int session_id,
if (vb2_v4l2_buf == vb)
break;
}
- if (vb2_v4l2_buf != vb) {
+ if (WARN_ON(vb2_v4l2_buf != vb)) {
pr_err("VB buffer is INVALID ses_id=%d, str_id=%d, vb=%p\n",
session_id, stream_id, vb);
spin_unlock_irqrestore(&stream->stream_lock, flags);