Date: Mon, 13 Apr 2020 22:06:28 +0000 (UTC) From: Vladimir Kondratyev <wulf@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r359905 - head/sys/dev/evdev Message-ID: <202004132206.03DM6SZA004375@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wulf Date: Mon Apr 13 22:06:28 2020 New Revision: 359905 URL: https://svnweb.freebsd.org/changeset/base/359905 Log: [evdev] Use proper mutex reference in autorepeat callout initialization. This fixes panic occuring when evdev key autorepeat is enabled by driver which initializes evdev with external mutex. Modified: head/sys/dev/evdev/evdev.c Modified: head/sys/dev/evdev/evdev.c ============================================================================== --- head/sys/dev/evdev/evdev.c Mon Apr 13 21:23:39 2020 (r359904) +++ head/sys/dev/evdev/evdev.c Mon Apr 13 22:06:28 2020 (r359905) @@ -295,7 +295,7 @@ evdev_register_common(struct evdev_dev *evdev) if (evdev_event_supported(evdev, EV_REP) && bit_test(evdev->ev_flags, EVDEV_FLAG_SOFTREPEAT)) { /* Initialize callout */ - callout_init_mtx(&evdev->ev_rep_callout, &evdev->ev_mtx, 0); + callout_init_mtx(&evdev->ev_rep_callout, evdev->ev_lock, 0); if (evdev->ev_rep[REP_DELAY] == 0 && evdev->ev_rep[REP_PERIOD] == 0) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004132206.03DM6SZA004375>