Re: [PATCH] IRDA: irda_create() nuke user triggable printk

2008-01-07 Thread David Miller
From: maximilian attems <[EMAIL PROTECTED]>
Date: Mon,  7 Jan 2008 01:34:32 +0100

> 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 <[EMAIL PROTECTED]>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] IRDA: irda_create() nuke user triggable printk

2008-01-06 Thread maximilian attems
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 <[EMAIL PROTECTED]>
---
 net/irda/af_irda.c |2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c
index 48ce59a..d5e4dd7 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;
-- 
debian.1.5.3.7.1-dirty

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html