msm: camera: Retelimit log in msm_vb2_buf_cleanup.

Ratelimit log in msm_vb2_buf_cleanup to prevent excessive logging when
stream is NULL.

Change-Id: Ia687375c8e2a2683a4d32cd0eb984f731b2288e7
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
This commit is contained in:
Trishansh Bhardwaj 2016-01-11 11:40:44 +05:30 committed by L R
parent a805985a97
commit a731bc8c09
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ static void msm_vb2_buf_cleanup(struct vb2_buffer *vb)
stream = msm_get_stream_from_vb2q(vb->vb2_queue);
if (!stream) {
pr_err("%s:%d] NULL stream", __func__, __LINE__);
pr_err_ratelimited("%s:%d] NULL stream", __func__, __LINE__);
read_unlock_irqrestore(&session->stream_rwlock, rl_flags);
return;
}