diff options
Diffstat (limited to 'net/netrom/af_netrom.c')
-rw-r--r-- | net/netrom/af_netrom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 698814bfa7ad..53c19a35fc6d 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
@@ -1179,10 +1179,9 @@ static int nr_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
1179 | sax->sax25_family = AF_NETROM; | 1179 | sax->sax25_family = AF_NETROM; |
1180 | skb_copy_from_linear_data_offset(skb, 7, sax->sax25_call.ax25_call, | 1180 | skb_copy_from_linear_data_offset(skb, 7, sax->sax25_call.ax25_call, |
1181 | AX25_ADDR_LEN); | 1181 | AX25_ADDR_LEN); |
1182 | msg->msg_namelen = sizeof(*sax); | ||
1182 | } | 1183 | } |
1183 | 1184 | ||
1184 | msg->msg_namelen = sizeof(*sax); | ||
1185 | |||
1186 | skb_free_datagram(sk, skb); | 1185 | skb_free_datagram(sk, skb); |
1187 | 1186 | ||
1188 | release_sock(sk); | 1187 | release_sock(sk); |