]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[IRDA]: irda_create() nuke user triggable printk
authorMaximilian Attems <max@stro.at>
Tue, 15 Jan 2008 21:26:52 +0000 (23:26 +0200)
committerAdrian Bunk <bunk@kernel.org>
Tue, 15 Jan 2008 23:48:13 +0000 (01:48 +0200)
[ 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: Adrian Bunk <bunk@kernel.org>
net/irda/af_irda.c

index f74b936ce8bf7b6d07021281cf9ead8a7bf0e5c2..400c58c83f4a1d292a7c6b231762724ac5cad344 100644 (file)
@@ -1141,8 +1141,6 @@ static int irda_create(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;