]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
applicom: Fix an unchecked user ioctl range and an error return
authorAlan Cox <alan@redhat.com>
Mon, 13 Oct 2008 09:45:17 +0000 (10:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 13 Dec 2008 23:29:36 +0000 (15:29 -0800)
commitc832f62d3d057abfc1125621c80ede5840cf7aef
tree5ec4fd6260f8f551df619bd352879f404818a14a
parentb1e58876b39029fb4f1b49504ba01f5454428878
applicom: Fix an unchecked user ioctl range and an error return

commit a7be18d436f0c7007794965e5af29fa1ffff1e05 upstream.

Closes bug #11408 by checking the card index range for command 0
Fixes the ioctl to return ENOTTY which is correct for unknown ioctls

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/applicom.c