Date: Sun, 5 Jul 2015 14:24:36 +0000 (UTC) From: Jakub Wojciech Klama <jceel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r285167 - user/jceel/soc2014_evdev/head/sys/dev/evdev Message-ID: <201507051424.t65EOah7050743@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jceel Date: Sun Jul 5 14:24:35 2015 New Revision: 285167 URL: https://svnweb.freebsd.org/changeset/base/285167 Log: Correctly handle data arguments in EV_SET_* ioctls. Modified: user/jceel/soc2014_evdev/head/sys/dev/evdev/uinput.c Modified: user/jceel/soc2014_evdev/head/sys/dev/evdev/uinput.c ============================================================================== --- user/jceel/soc2014_evdev/head/sys/dev/evdev/uinput.c Sun Jul 5 14:24:29 2015 (r285166) +++ user/jceel/soc2014_evdev/head/sys/dev/evdev/uinput.c Sun Jul 5 14:24:35 2015 (r285167) @@ -265,31 +265,31 @@ uinput_ioctl(struct cdev *dev, u_long cm break; case UI_SET_EVBIT: - evdev_support_event(state->ucs_evdev, (uint16_t)(uintptr_t)data); + evdev_support_event(state->ucs_evdev, (uint16_t)(uintptr_t)*data); break; case UI_SET_KEYBIT: - evdev_support_key(state->ucs_evdev, (uint16_t)(uintptr_t)data); + evdev_support_key(state->ucs_evdev, (uint16_t)(uintptr_t)*data); break; case UI_SET_RELBIT: - evdev_support_rel(state->ucs_evdev, (uint16_t)(uintptr_t)data); + evdev_support_rel(state->ucs_evdev, (uint16_t)(uintptr_t)*data); break; case UI_SET_ABSBIT: - evdev_support_abs(state->ucs_evdev, (uint16_t)(uintptr_t)data); + evdev_support_abs(state->ucs_evdev, (uint16_t)(uintptr_t)*data); break; case UI_SET_MSCBIT: - evdev_support_msc(state->ucs_evdev, (uint16_t)(uintptr_t)data); + evdev_support_msc(state->ucs_evdev, (uint16_t)(uintptr_t)*data); break; case UI_SET_LEDBIT: - evdev_support_led(state->ucs_evdev, (uint16_t)(uintptr_t)data); + evdev_support_led(state->ucs_evdev, (uint16_t)(uintptr_t)*data); break; case UI_SET_SNDBIT: - evdev_support_snd(state->ucs_evdev, (uint16_t)(uintptr_t)data); + evdev_support_snd(state->ucs_evdev, (uint16_t)(uintptr_t)*data); break; case UI_SET_PHYS: @@ -297,7 +297,7 @@ uinput_ioctl(struct cdev *dev, u_long cm break; case UI_SET_SWBIT: - evdev_support_sw(state->ucs_evdev, (uint16_t)(uintptr_t)data); + evdev_support_sw(state->ucs_evdev, (uint16_t)(uintptr_t)*data); break; case UI_SET_PROPBIT:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507051424.t65EOah7050743>