Skip to contentSkip to conversation

IRDA: irda_create() nuke user triggable printk

PATCH Applied maximilian attems 2 participants 2 messages Jan 7, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 net/irda/af_irda.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
net/irda/af_irda.c +0 -2
index 48ce59a..d5e4dd7 100644
@@ -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;
Signature · 1 line
debian.1.5.3.7.1-dirty