aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Attems <max@stro.at>2008-01-15 23:26:52 +0200
committerAdrian Bunk <bunk@kernel.org>2008-01-16 01:48:13 +0200
commit0b9ad3cb150e0fa7bb559e6664fb6c9458c3fd24 (patch)
tree08396aa3b40b58bf52bcd18a6892cebbda4c9294
parentffcf747658eff56a00c1606b5d064ea9b6611668 (diff)
[IRDA]: irda_create() nuke user triggable printk
[ Upstream commit: 9e8d6f8959c356d8294d45f11231331c3e1bcae6 ] 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> Signed-off-by: Adrian Bunk <bunk@kernel.org>
-rw-r--r--net/irda/af_irda.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c
index f74b936ce8b..400c58c83f4 100644
--- a/net/irda/af_irda.c
+++ b/net/irda/af_irda.c
@@ -1141,8 +1141,6 @@ static int irda_create(struct socket *sock, int protocol)
self->max_sdu_size_rx = TTP_SAR_UNBOUND;
break;
default:
- IRDA_ERROR("%s: protocol not supported!\n",
- __FUNCTION__);
return -ESOCKTNOSUPPORT;
}
break;