Loading drivers/soc/qcom/dcc_v2.c +2 −1 Original line number Diff line number Diff line Loading @@ -1558,7 +1558,8 @@ static ssize_t dcc_sram_read(struct file *file, char __user *data, if (drvdata->ram_size <= *ppos) return 0; if ((*ppos + len) > drvdata->ram_size) if ((*ppos + len) < len || (*ppos + len) > drvdata->ram_size) len = (drvdata->ram_size - *ppos); buf = kzalloc(len, GFP_KERNEL); Loading Loading
drivers/soc/qcom/dcc_v2.c +2 −1 Original line number Diff line number Diff line Loading @@ -1558,7 +1558,8 @@ static ssize_t dcc_sram_read(struct file *file, char __user *data, if (drvdata->ram_size <= *ppos) return 0; if ((*ppos + len) > drvdata->ram_size) if ((*ppos + len) < len || (*ppos + len) > drvdata->ram_size) len = (drvdata->ram_size - *ppos); buf = kzalloc(len, GFP_KERNEL); Loading