]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c97f3977a57e4070248b32838f0ed062fb35095
tree23e17b3010423fcc721e524bd9a559703063191f
parente0720a6855e93e490ca9ba83b107a7cde19cd9a7
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