diff options
Diffstat (limited to 'drivers/isdn/mISDN/socket.c')
-rw-r--r-- | drivers/isdn/mISDN/socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c index 7446d8b4282d..8e325227b4c0 100644 --- a/drivers/isdn/mISDN/socket.c +++ b/drivers/isdn/mISDN/socket.c | |||
@@ -457,6 +457,9 @@ static int data_sock_getsockopt(struct socket *sock, int level, int optname, | |||
457 | if (get_user(len, optlen)) | 457 | if (get_user(len, optlen)) |
458 | return -EFAULT; | 458 | return -EFAULT; |
459 | 459 | ||
460 | if (len != sizeof(char)) | ||
461 | return -EINVAL; | ||
462 | |||
460 | switch (optname) { | 463 | switch (optname) { |
461 | case MISDN_TIME_STAMP: | 464 | case MISDN_TIME_STAMP: |
462 | if (_pms(sk)->cmask & MISDN_TIME_STAMP) | 465 | if (_pms(sk)->cmask & MISDN_TIME_STAMP) |