networking: inappropriate ioctl operation should return ENOTTY
authorLifeng Sun <lifongsun@gmail.com>
Wed, 27 Apr 2011 22:04:51 +0000 (22:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 May 2011 22:41:29 +0000 (15:41 -0700)
commit41c31f318a5209922d051e293c61e4724daad11c
tree23e17b3010423fcc721e524bd9a559703063191f
parent983960b159a75621855283030d92a80bea92e071
networking: inappropriate ioctl operation should return ENOTTY

ioctl() calls against a socket with an inappropriate ioctl operation
are incorrectly returning EINVAL rather than ENOTTY:

  [ENOTTY]
      Inappropriate I/O control operation.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=33992
Signed-off-by: Lifeng Sun <lifongsun@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c