fix kernel crash by adau1761

This commit is contained in:
wangzijiao 2018-09-12 17:27:45 +08:00
parent bde9c67ae3
commit 3ba2fbf4d1
1 changed files with 2 additions and 1 deletions

View File

@ -2359,7 +2359,8 @@ static long adau1761_ioctl(struct file *file, unsigned int cmd,
} break;
case ADAU1761_CMD_VOL_GET: {
*(unsigned long *)arg = (unsigned long)adau1761_priv.vol;
//*(unsigned long *)arg = (unsigned long)adau1761_priv.vol;
put_user((unsigned long)adau1761_priv.vol, (unsigned long *)arg);
} break;
case ADAU1761_CMD_AMP_MUTE_SET: {