Skip to content

Commit

Permalink
[AX25]: Kill ax25_bind() user triggable printk.
Browse files Browse the repository at this point in the history
on the last run overlooked that sfuzz triggable message.
move the message to the corresponding comment.

Signed-off-by: maximilian attems <max@stro.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
maximilian attems authored and David S. Miller committed Feb 1, 2008
1 parent a44562e commit 1987e7b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions net/ax25/af_ax25.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,16 +1037,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;
Expand Down

0 comments on commit 1987e7b

Please sign in to comment.