[AX.25]: Fix unchecked ax25_listen_register uses

Fix ax25_listen_register to return something that's a sane error code,
then all callers to use it.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Esse commit está contido em:
Ralf Baechle
2006-12-14 15:50:34 -08:00
commit de David S. Miller
commit 81dcd16906
3 arquivos alterados com 24 adições e 10 exclusões

Ver arquivo

@@ -1314,7 +1314,8 @@ static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
if (copy_from_user(&rose_callsign, argp, sizeof(ax25_address)))
return -EFAULT;
if (ax25cmp(&rose_callsign, &null_ax25_address) != 0)
ax25_listen_register(&rose_callsign, NULL);
return ax25_listen_register(&rose_callsign, NULL);
return 0;
case SIOCRSGL2CALL: