Re: [PATCH v2] ioctl: fix ioctl command number decoding in case of conflicts

2015-09-23 Thread Dmitry V. Levin
On Wed, Sep 23, 2015 at 10:11:55AM +0200, Gabriel Laskar wrote: > When a command number was decoded through ioctl_decode_command_number(), > there was no check for conflicts with other potential ioctls numbers. Merged, thanks. -- ldv pgpiEZIHmyV0L.pgp Description: PGP signature --

[PATCH v2] ioctl: fix conflicts command number decoding in case of conflicts

2015-09-23 Thread Gabriel Laskar
When a command number was decoded through ioctl_decode_command_number(), there was no check for conflicts with other potential ioctls numbers. For example: ioctl(fd, MCE_GET_RECORD_LEN, &i); output: ioctl(3, MIXER_READ(1), 0x7ffddce74a58) = 0 instead of: ioctl(3, MIXER_READ