msm: cpp: Ignore input validation for sof freeze/unfreeze command ids
The command ids do not have separate pointer payload and would return error. If error is returned without waiting for any subsequent driver operation like a timeout handling to complete, it would result in synchronization issues and potential crashes. Ignore input validation for sof freeze/unfreeze command ids. CRs-Fixed: 1002547 Change-Id: Ifbecd46f8e3f8e93d846da3dfc72f7ef70687589 Signed-off-by: Krishnankutty Kolathappilly <kkolatha@codeaurora.org>
This commit is contained in:
parent
1ee06a053c
commit
1caba4ba88
1 changed files with 2 additions and 0 deletions
|
@ -2541,6 +2541,8 @@ static int msm_cpp_validate_input(unsigned int cmd, void *arg,
|
||||||
{
|
{
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case MSM_SD_SHUTDOWN:
|
case MSM_SD_SHUTDOWN:
|
||||||
|
case MSM_SD_NOTIFY_FREEZE:
|
||||||
|
case MSM_SD_UNNOTIFY_FREEZE:
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
if (ioctl_ptr == NULL) {
|
if (ioctl_ptr == NULL) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue