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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:44 +0000 (09:51 -0700)
commita7be18d436f0c7007794965e5af29fa1ffff1e05
tree4675ce7e3a5255108bf1d9c7f4ec4507592d50b7
parent17b820606e7bdd3be31b001265d0177423fea5eb
applicom: Fix an unchecked user ioctl range and an error return

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>
drivers/char/applicom.c