Loading sound/soc/codecs/wcd934x/wcd934x-dsp-cntl.c +3 −1 Original line number Diff line number Diff line Loading @@ -910,10 +910,12 @@ static ssize_t wcd_miscdev_write(struct file *filep, const char __user *ubuf, { struct wcd_dsp_cntl *cntl = container_of(filep->private_data, struct wcd_dsp_cntl, miscdev); char val[WCD_DSP_CNTL_MAX_COUNT]; char val[WCD_DSP_CNTL_MAX_COUNT + 1]; bool vote; int ret = 0; memset(val, 0, WCD_DSP_CNTL_MAX_COUNT + 1); if (count == 0 || count > WCD_DSP_CNTL_MAX_COUNT) { pr_err("%s: Invalid count = %zd\n", __func__, count); ret = -EINVAL; Loading Loading
sound/soc/codecs/wcd934x/wcd934x-dsp-cntl.c +3 −1 Original line number Diff line number Diff line Loading @@ -910,10 +910,12 @@ static ssize_t wcd_miscdev_write(struct file *filep, const char __user *ubuf, { struct wcd_dsp_cntl *cntl = container_of(filep->private_data, struct wcd_dsp_cntl, miscdev); char val[WCD_DSP_CNTL_MAX_COUNT]; char val[WCD_DSP_CNTL_MAX_COUNT + 1]; bool vote; int ret = 0; memset(val, 0, WCD_DSP_CNTL_MAX_COUNT + 1); if (count == 0 || count > WCD_DSP_CNTL_MAX_COUNT) { pr_err("%s: Invalid count = %zd\n", __func__, count); ret = -EINVAL; Loading