Skip to content
Snippets Groups Projects
Commit 9e8d6f89 authored by maximilian attems's avatar maximilian attems Committed by David S. Miller
Browse files

[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: default avatarmaximilian attems <max@stro.at>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 036b579b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment