From: Gabriel Laskar <gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
To: linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Dmitry Torokhov
<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
David Herrmann
<dh.herrmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Peter Hutterer
<peter.hutterer-Pf4JEFdB4epeoWH0uzbU5w@public.gmane.org>,
Benjamin Tissoires
<benjamin.tissoires-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Gabriel Laskar <gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
Subject: [PATCH 1/2] Input: uinput - fix ioctl nr overflow for UI_GET_SYSNAME
Date: Sat, 10 Jan 2015 13:43:35 +0100 [thread overview]
Message-ID: <1420893816-11620-2-git-send-email-gabriel@lse.epita.fr> (raw)
In-Reply-To: <1420893816-11620-1-git-send-email-gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
Request number for ioctls are encoded on 8bit. Values for are superior
to 255. The effective value is 0x2c. The effective ioctl number is still
the same one, it will not change the api in anyway.
Signed-off-by: Gabriel Laskar <gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
---
include/uapi/linux/uinput.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/uapi/linux/uinput.h b/include/uapi/linux/uinput.h
index baeab83..358f7d9 100644
--- a/include/uapi/linux/uinput.h
+++ b/include/uapi/linux/uinput.h
@@ -82,7 +82,7 @@ struct uinput_ff_erase {
* The complete sysfs path is then /sys/devices/virtual/input/--NAME--
* Usually, it is in the form "inputN"
*/
-#define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 300, len)
+#define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 0x2c, len)
/**
* UI_GET_VERSION - Return version of uinput protocol
--
2.2.1
next prev parent reply other threads:[~2015-01-10 12:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-10 12:43 [PATCH 0/2] Input: uinput - fix ioctl numbers in uapi/uinput.h Gabriel Laskar
[not found] ` <1420893816-11620-1-git-send-email-gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
2015-01-10 12:43 ` Gabriel Laskar [this message]
2015-01-10 12:43 ` [PATCH 2/2] Input: uinput - fix ioctl nr overflow for UI_GET_VERSION Gabriel Laskar
[not found] ` <1420893816-11620-3-git-send-email-gabriel-tU7rkvAWjlwhT4uAktR2oQ@public.gmane.org>
2015-01-12 0:37 ` Peter Hutterer
2015-01-12 0:29 ` [PATCH 0/2] Input: uinput - fix ioctl numbers in uapi/uinput.h Dmitry Torokhov
2015-01-12 15:57 ` Benjamin Tissoires
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=1420893816-11620-2-git-send-email-gabriel@lse.epita.fr \
--to=gabriel-tu7rkvawjlwht4uaktr2oq@public.gmane.org \
--cc=benjamin.tissoires-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=dh.herrmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=peter.hutterer-Pf4JEFdB4epeoWH0uzbU5w@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).