Skip to content

Commit

Permalink
[IRDA]: irda_create() nuke user triggable printk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
maximilian attems authored and David S. Miller committed Jan 9, 2008
1 parent 036b579 commit 9e8d6f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/irda/af_irda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e8d6f8

Please sign in to comment.