isdnloop: Validate NUL-terminated strings from user.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 2 Apr 2014 03:48:42 +0000 (12:48 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 13:42:18 +0000 (06:42 -0700)
commit4a7a92aa5fa857a92b63507d3ef8ff0f668fbb21
tree724c91ecac4dacec0f7c6523da1cd96e06cb8f6f
parentdbd3f730cf94e5ff51c196f6765a87e9e113ee64
isdnloop: Validate NUL-terminated strings from user.

[ Upstream commit 77bc6bed7121936bb2e019a8c336075f4c8eef62 ]

Return -EINVAL unless all of user-given strings are correctly
NUL-terminated.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/isdn/isdnloop/isdnloop.c