]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: rt5665: fix getting wrong work handler container
authorBard Liao <bardliao@realtek.com>
Wed, 8 Mar 2017 11:03:10 +0000 (19:03 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 8 Mar 2017 12:44:10 +0000 (13:44 +0100)
We got rt5665 private data from wrong work. It will result in kernel
panic.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/rt5665.c

index 324461e985b3918211ad29052a5142a6560e26af..fe2cf1ed8237a4f1a3ec5694db4140a76913fd50 100644 (file)
@@ -1241,7 +1241,7 @@ static irqreturn_t rt5665_irq(int irq, void *data)
 static void rt5665_jd_check_handler(struct work_struct *work)
 {
        struct rt5665_priv *rt5665 = container_of(work, struct rt5665_priv,
-               calibrate_work.work);
+               jd_check_work.work);
 
        if (snd_soc_read(rt5665->codec, RT5665_AJD1_CTRL) & 0x0010) {
                /* jack out */