autofs: fix dev ioctl number range check
authorIan Kent <raven@themaw.net>
Sat, 10 Sep 2016 10:34:25 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:25 +0000 (20:34 +1000)
commit72f2e85ecf0ae2a40b857dfb858126c79265a99c
treee9dc67110dbb4a951809c22d6205a1b03988dccc
parent6dd6aca59cde852cba9eaa3c1de2c723670e99ca
autofs: fix dev ioctl number range check

The count of miscellaneous device ioctls in fs/autofs4/autofs_i.h is wrong.

The number of ioctls is the difference between AUTOFS_DEV_IOCTL_VERSION_CMD
and AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD (14) not the difference between
AUTOFS_IOC_COUNT and 11 (21).

Link: http://lkml.kernel.org/r/20160812024841.12352.11975.stgit@pluto.themaw.net
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/autofs4/autofs_i.h
fs/autofs4/dev-ioctl.c
This page took 0.026405 seconds and 5 git commands to generate.