Loading drivers/misc/qseecom.c +2 −1 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ * QTI Secure Execution Environment Communicator (QSEECOM) driver * * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #define pr_fmt(fmt) "QSEECOM: %s: " fmt, __func__ Loading Loading @@ -1933,7 +1934,7 @@ static int qseecom_scale_bus_bandwidth(struct qseecom_dev_handle *data, pr_err("copy_from_user failed\n"); return ret; } if (req_mode > HIGH) { if (req_mode > HIGH || req_mode < QSEECOM_STATE_NOT_READY) { pr_err("Invalid bandwidth mode (%d)\n", req_mode); return -EINVAL; } Loading Loading
drivers/misc/qseecom.c +2 −1 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ * QTI Secure Execution Environment Communicator (QSEECOM) driver * * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #define pr_fmt(fmt) "QSEECOM: %s: " fmt, __func__ Loading Loading @@ -1933,7 +1934,7 @@ static int qseecom_scale_bus_bandwidth(struct qseecom_dev_handle *data, pr_err("copy_from_user failed\n"); return ret; } if (req_mode > HIGH) { if (req_mode > HIGH || req_mode < QSEECOM_STATE_NOT_READY) { pr_err("Invalid bandwidth mode (%d)\n", req_mode); return -EINVAL; } Loading