mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-14 21:01:29 +00:00
[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: maximilian attems <max@stro.at> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
036b579b11
commit
9e8d6f8959
@ -1118,8 +1118,6 @@ static int irda_create(struct net *net, struct socket *sock, int protocol)
|
|||||||
self->max_sdu_size_rx = TTP_SAR_UNBOUND;
|
self->max_sdu_size_rx = TTP_SAR_UNBOUND;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
IRDA_ERROR("%s: protocol not supported!\n",
|
|
||||||
__FUNCTION__);
|
|
||||||
return -ESOCKTNOSUPPORT;
|
return -ESOCKTNOSUPPORT;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user