Message ID | 1290467390-25302-1-git-send-email-dlaurie@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index 405bf21..a66307e 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c @@ -454,6 +454,7 @@ static ssize_t serio_rebind_driver(struct device *dev, struct device_attribute * serio_disconnect_port(serio); error = serio_bind_driver(serio, to_serio_driver(drv)); put_driver(drv); + serio_remove_pending_events(serio); } else { error = -EINVAL; }