Patchwork ax25: Fix missing break

login
register
mail settings
Submitter Alan Cox
Date July 13, 2012, 4:33 p.m.
Message ID <20120713163247.22674.82793.stgit@localhost.localdomain>
Download mbox | patch
Permalink /patch/170928/
State Accepted
Delegated to: David Miller
Headers show

Comments

Alan Cox - July 13, 2012, 4:33 p.m.
From: Alan Cox <alan@linux.intel.com>

At least there seems to be no reason to disallow ROSE sockets when
NETROM is loaded.

Signed-off-by: Alan Cox <alan@linux.intel.com>
---

 net/ax25/af_ax25.c |    1 +
 1 file changed, 1 insertion(+)


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - July 17, 2012, 6:22 a.m.
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Fri, 13 Jul 2012 17:33:08 +0100

> From: Alan Cox <alan@linux.intel.com>
> 
> At least there seems to be no reason to disallow ROSE sockets when
> NETROM is loaded.
> 
> Signed-off-by: Alan Cox <alan@linux.intel.com>

Applied, thanks Alan.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c
index 051f7ab..779095d 100644
--- a/net/ax25/af_ax25.c
+++ b/net/ax25/af_ax25.c
@@ -842,6 +842,7 @@  static int ax25_create(struct net *net, struct socket *sock, int protocol,
 		case AX25_P_NETROM:
 			if (ax25_protocol_is_registered(AX25_P_NETROM))
 				return -ESOCKTNOSUPPORT;
+			break;
 #endif
 #ifdef CONFIG_ROSE_MODULE
 		case AX25_P_ROSE: