[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:
@@ -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:
|
||||
|
Referência em uma nova issue
Block a user