From 0d539224ff15f10f741f61a19451a92de12eb733 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Fri, 11 Jan 2008 01:14:17 -0800 Subject: [PATCH] IRDA: irda_create() nuke user triggable printk [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: Greg Kroah-Hartman --- net/irda/af_irda.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index 4c670cf6aefae..82fdca29448cf 100644 --- a/net/irda/af_irda.c +++ b/net/irda/af_irda.c @@ -1115,8 +1115,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; -- 2.47.2