From 3ba2fbf4d19bbdc1a779256827a32b02d97ea052 Mon Sep 17 00:00:00 2001 From: wangzijiao Date: Wed, 12 Sep 2018 17:27:45 +0800 Subject: [PATCH] fix kernel crash by adau1761 --- lichee/linux-4.9/drivers/misc/adau1761-r311-pv1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lichee/linux-4.9/drivers/misc/adau1761-r311-pv1.c b/lichee/linux-4.9/drivers/misc/adau1761-r311-pv1.c index 4f0229b97..791dbcd1c 100755 --- a/lichee/linux-4.9/drivers/misc/adau1761-r311-pv1.c +++ b/lichee/linux-4.9/drivers/misc/adau1761-r311-pv1.c @@ -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: {