isdnloop: Validate NUL-terminated strings from user.
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Wed, 2 Apr 2014 03:48:42 +0000 (12:48 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 Apr 2014 15:23:17 +0000 (16:23 +0100)
commitb6de0f964e567b8494c0172be16f2893452892df
tree6ee22b1d1bd9553231a3300be9d81c08be9e046f
parente78fe1b486df8633ee3e86573242eff51aa50007
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: Ben Hutchings <ben@decadent.org.uk>
drivers/isdn/isdnloop/isdnloop.c