diff options
author | maximilian attems <max@stro.at> | 2008-01-07 03:30:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-09 02:30:05 -0500 |
commit | 9e8d6f8959c356d8294d45f11231331c3e1bcae6 (patch) | |
tree | fa639ee1d003f0b3d94aac899b96ee82260045d0 /net/irda/af_irda.c | |
parent | 036b579b1146f52c51398f1ab663cf659094107d (diff) |
[IRDA]: irda_create() nuke user triggable printk
easy to trigger as user with sfuzz.
irda_create() is quiet on unknown sock->type,
match this behaviour for SOCK_DGRAM unknown protocol
Signed-off-by: maximilian attems <max@stro.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/af_irda.c')
-rw-r--r-- | net/irda/af_irda.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index 48ce59a6e026..d5e4dd75200b 100644 --- a/net/irda/af_irda.c +++ b/net/irda/af_irda.c | |||
@@ -1118,8 +1118,6 @@ static int irda_create(struct net *net, struct socket *sock, int protocol) | |||
1118 | self->max_sdu_size_rx = TTP_SAR_UNBOUND; | 1118 | self->max_sdu_size_rx = TTP_SAR_UNBOUND; |
1119 | break; | 1119 | break; |
1120 | default: | 1120 | default: |
1121 | IRDA_ERROR("%s: protocol not supported!\n", | ||
1122 | __FUNCTION__); | ||
1123 | return -ESOCKTNOSUPPORT; | 1121 | return -ESOCKTNOSUPPORT; |
1124 | } | 1122 | } |
1125 | break; | 1123 | break; |