From: Maximilian Attems Date: Tue, 15 Jan 2008 21:26:52 +0000 (+0200) Subject: [IRDA]: irda_create() nuke user triggable printk X-Git-Tag: v2.6.16.59-rc1~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0b9ad3cb150e0fa7bb559e6664fb6c9458c3fd24;p=karo-tx-linux.git [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 Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index f74b936ce8bf..400c58c83f4a 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;