Merge "msm: camera: make sure num_buf is not out of bound"