: Kill ax25_bind() user triggable printk.
Subsystems (3)
PATCH 1/1 : Kill ax25_bind() user triggable printk.
on the last run overlooked that sfuzz triggable message. move the message to the corresponding comment.
Signed-off-by maximilian attems <[email protected]>
--- net/ax25/af_ax25.c | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-)
net/ax25/af_ax25.c +5 -8
@@ -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 ;
Signature · 1 line
1.5.4.rc4
PATCH 1/1 : Beautify x25_init() version printk.
kill ref to old version and dup Linux.
Signed-off-by maximilian attems <[email protected]>
--- net/x25/af_x25.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/x25/af_x25.c +1 -1
@@ -1652,7 +1652,7 @@ static int __init x25_init(void)register_netdevice_notifier (&x25_dev_notifier); -printk (KERN_INFO "X.25 for Linux. Version 0.2 for Linux 2.1.15\n" ); +printk (KERN_INFO "X.25 for Linux Version 0.2\n" );#ifdef CONFIG_SYSCTL x25_register_sysctl ();
Signature · 1 line
1.5.4.rc4
Re: [PATCH] [AX25]: Beautify x25_init() version printk.
From: maximilian attems <[email protected]>
Date: Mon, 28 Jan 2008 18:31:10 +0100
Quoted 3 lines
kill ref to old version and dup Linux.
Signed-off-by maximilian attems <[email protected]>
Applied
From: maximilian attems <[email protected]>
Date: Mon, 28 Jan 2008 18:31:09 +0100
Quoted 4 lines
on the last run overlooked that sfuzz triggable message. move the message to the corresponding comment.
Signed-off-by maximilian attems <[email protected]>
Applied.