From: Oliver Neukum <oneukum@suse.com>
To: Pierre Sauter <pierre.sauter@stwm.de>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: PROBLEM: Kernel Bug on USB unplugging (Elo TouchSystems CarrollTouch 4500U)
Date: Tue, 31 May 2016 10:13:10 +0200 [thread overview]
Message-ID: <1464682390.10800.3.camel@suse.com> (raw)
In-Reply-To: <3584657.zr8b82jmFp@stwm.de>
[-- Attachment #1: Type: text/plain, Size: 526 bytes --]
On Mon, 2016-05-30 at 18:47 +0200, Pierre Sauter wrote:
> On unplugging this USB Touchscreen, everytime I get either:
>
> [ 161.596055] BUG: unable to handle kernel NULL pointer dereference at 00000015
> [ 161.596093] IP: [<c10c92b0>] get_next_timer_interrupt+0x80/0x270
> or
> [ 155.892061] BUG: unable to handle kernel paging request at 30303046
> [ 155.892101] IP: [<c10d13da>] get_next_timer_interrupt+0x8a/0x290
>
> and then panic and the system is unresponsive.
Please try the attached patch.
Regards
Oliver
[-- Attachment #2: 0001-hid-elo-kill-not-flush-the-work.patch --]
[-- Type: text/x-patch, Size: 802 bytes --]
From 50a2b0b9e53cae8c4d608e672dd3db93673bd350 Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oneukum@suse.com>
Date: Tue, 31 May 2016 10:08:47 +0200
Subject: [PATCH] hid-elo: kill not flush the work
Flushing a work that reschedules itself is not a sensible
operation. It needs to be killed.
Signed-off-by: Oliver Neukum <ONeukum@suse.com>
---
drivers/hid/hid-elo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/hid-elo.c b/drivers/hid/hid-elo.c
index aad8c16..0cd4f72 100644
--- a/drivers/hid/hid-elo.c
+++ b/drivers/hid/hid-elo.c
@@ -261,7 +261,7 @@ static void elo_remove(struct hid_device *hdev)
struct elo_priv *priv = hid_get_drvdata(hdev);
hid_hw_stop(hdev);
- flush_workqueue(wq);
+ cancel_delayed_work_sync(&priv->work);
kfree(priv);
}
--
2.1.4
next prev parent reply other threads:[~2016-05-31 8:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-30 16:47 PROBLEM: Kernel Bug on USB unplugging (Elo TouchSystems CarrollTouch 4500U) Pierre Sauter
2016-05-30 19:57 ` Alan Stern
2016-05-31 8:13 ` Oliver Neukum [this message]
2016-05-31 11:56 ` Pierre Sauter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1464682390.10800.3.camel@suse.com \
--to=oneukum@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=pierre.sauter@stwm.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox