Loading drivers/soc/qcom/dcc.c +2 −1 Original line number Diff line number Diff line Loading @@ -731,7 +731,8 @@ static int dcc_config_add(struct dcc_drvdata *drvdata, unsigned int addr, mutex_lock(&drvdata->mutex); if (!len) { /* Check the len to avoid allocate huge memory */ if (!len || len > (drvdata->ram_size / 8)) { dev_err(drvdata->dev, "DCC: Invalid length!\n"); ret = -EINVAL; goto err; Loading Loading
drivers/soc/qcom/dcc.c +2 −1 Original line number Diff line number Diff line Loading @@ -731,7 +731,8 @@ static int dcc_config_add(struct dcc_drvdata *drvdata, unsigned int addr, mutex_lock(&drvdata->mutex); if (!len) { /* Check the len to avoid allocate huge memory */ if (!len || len > (drvdata->ram_size / 8)) { dev_err(drvdata->dev, "DCC: Invalid length!\n"); ret = -EINVAL; goto err; Loading