fix kernel crash by adau1761
This commit is contained in:
parent
bde9c67ae3
commit
3ba2fbf4d1
|
@ -2359,7 +2359,8 @@ static long adau1761_ioctl(struct file *file, unsigned int cmd,
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case ADAU1761_CMD_VOL_GET: {
|
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;
|
} break;
|
||||||
|
|
||||||
case ADAU1761_CMD_AMP_MUTE_SET: {
|
case ADAU1761_CMD_AMP_MUTE_SET: {
|
||||||
|
|
Loading…
Reference in New Issue