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:
Krishnankutty Kolathappilly 2016-04-15 18:39:37 -07:00 committed by Jeevan Shriram
parent 1ee06a053c
commit 1caba4ba88

View file

@ -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) {