Messages in this thread Patch in this message | | | Date | Fri, 1 Feb 2008 16:20:12 -0800 | From | Greg KH <> | Subject | [patch 07/27] IRDA: irda_create() nuke user triggable printk |
| |
2.6.22-stable review patch. If anyone has any objections, please let us know.
------------------ From: maximilian attems <max@stro.at>
[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 <max@stro.at> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- net/irda/af_irda.c | 2 -- 1 file changed, 2 deletions(-)
--- a/net/irda/af_irda.c +++ b/net/irda/af_irda.c @@ -1115,8 +1115,6 @@ static int irda_create(struct socket *so self->max_sdu_size_rx = TTP_SAR_UNBOUND; break; default: - IRDA_ERROR("%s: protocol not supported!\n", - __FUNCTION__); return -ESOCKTNOSUPPORT; } break; --
| |