From: maximilian attems Date: Mon, 7 Jan 2008 08:30:57 +0000 (-0800) Subject: [IRDA]: irda_create() nuke user triggable printk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e8d6f8959c356d8294d45f11231331c3e1bcae6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 Signed-off-by: David S. Miller --- diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index 48ce59a6e02..d5e4dd75200 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) self->max_sdu_size_rx = TTP_SAR_UNBOUND; break; default: - IRDA_ERROR("%s: protocol not supported!\n", - __FUNCTION__); return -ESOCKTNOSUPPORT; } break;