mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 11:32:04 +00:00
ASoC: rt5665: fix getting wrong work handler container
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
This commit is contained in:
parent
c1ae3cfa0e
commit
f1994a9c09
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user