netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [AX25]: Kill ax25_bind() user triggable printk.
@ 2008-01-28 17:31 maximilian attems
  2008-01-28 17:31 ` [PATCH] [AX25]: Beautify x25_init() version printk maximilian attems
  2008-01-29  4:44 ` [PATCH] [AX25]: Kill ax25_bind() user triggable printk David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: maximilian attems @ 2008-01-28 17:31 UTC (permalink / raw)
  To: davem; +Cc: netdev, maximilian attems

on the last run overlooked that sfuzz triggable message.
move the message to the corresponding comment.

Signed-off-by: maximilian attems <max@stro.at>
---
 net/ax25/af_ax25.c |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c
index b4725ff..a2cc7c1 100644
--- a/net/ax25/af_ax25.c
+++ b/net/ax25/af_ax25.c
@@ -1038,16 +1038,13 @@ static int ax25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
 	int err = 0;
 
 	if (addr_len != sizeof(struct sockaddr_ax25) &&
-	    addr_len != sizeof(struct full_sockaddr_ax25)) {
-		/* support for old structure may go away some time */
+	    addr_len != sizeof(struct full_sockaddr_ax25))
+		/* support for old structure may go away some time
+		 * ax25_bind(): uses old (6 digipeater) socket structure.
+		 */
 		if ((addr_len < sizeof(struct sockaddr_ax25) + sizeof(ax25_address) * 6) ||
-		    (addr_len > sizeof(struct full_sockaddr_ax25))) {
+		    (addr_len > sizeof(struct full_sockaddr_ax25)))
 			return -EINVAL;
-	}
-
-		printk(KERN_WARNING "ax25_bind(): %s uses old (6 digipeater) socket structure.\n",
-			current->comm);
-	}
 
 	if (addr->fsa_ax25.sax25_family != AF_AX25)
 		return -EINVAL;
-- 
1.5.4.rc4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-29  4:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 17:31 [PATCH] [AX25]: Kill ax25_bind() user triggable printk maximilian attems
2008-01-28 17:31 ` [PATCH] [AX25]: Beautify x25_init() version printk maximilian attems
2008-01-29  4:43   ` David Miller
2008-01-29  4:44 ` [PATCH] [AX25]: Kill ax25_bind() user triggable printk David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).