Loading drivers/soc/qcom/dcc.c +5 −3 Original line number Diff line number Diff line /* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -554,7 +554,8 @@ static ssize_t dcc_store_func_type(struct device *dev, if (strlen(buf) >= 10) return -EINVAL; strlcpy(str, buf, sizeof(str)); if (sscanf(buf, "%9s", str) != 1) return -EINVAL; mutex_lock(&drvdata->mutex); if (drvdata->enable) { Loading Loading @@ -599,7 +600,8 @@ static ssize_t dcc_store_data_sink(struct device *dev, if (strlen(buf) >= 10) return -EINVAL; strlcpy(str, buf, sizeof(str)); if (sscanf(buf, "%9s", str) != 1) return -EINVAL; mutex_lock(&drvdata->mutex); if (drvdata->enable) { Loading Loading
drivers/soc/qcom/dcc.c +5 −3 Original line number Diff line number Diff line /* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -554,7 +554,8 @@ static ssize_t dcc_store_func_type(struct device *dev, if (strlen(buf) >= 10) return -EINVAL; strlcpy(str, buf, sizeof(str)); if (sscanf(buf, "%9s", str) != 1) return -EINVAL; mutex_lock(&drvdata->mutex); if (drvdata->enable) { Loading Loading @@ -599,7 +600,8 @@ static ssize_t dcc_store_data_sink(struct device *dev, if (strlen(buf) >= 10) return -EINVAL; strlcpy(str, buf, sizeof(str)); if (sscanf(buf, "%9s", str) != 1) return -EINVAL; mutex_lock(&drvdata->mutex); if (drvdata->enable) { Loading