mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c net/ipv6/ip6_tunnel.c net/ipv6/ip6_vti.c ipv6 tunnel statistic bug fixes conflicting with consolidation into generic sw per-cpu net stats. qlogic conflict between queue counting bug fix and the addition of multiple MAC address support. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
56a4342dfe
347 changed files with 3686 additions and 1780 deletions
|
|
@ -1253,6 +1253,7 @@ static int rose_recvmsg(struct kiocb *iocb, struct socket *sock,
|
|||
|
||||
if (msg->msg_name) {
|
||||
struct sockaddr_rose *srose;
|
||||
struct full_sockaddr_rose *full_srose = msg->msg_name;
|
||||
|
||||
memset(msg->msg_name, 0, sizeof(struct full_sockaddr_rose));
|
||||
srose = msg->msg_name;
|
||||
|
|
@ -1260,18 +1261,9 @@ static int rose_recvmsg(struct kiocb *iocb, struct socket *sock,
|
|||
srose->srose_addr = rose->dest_addr;
|
||||
srose->srose_call = rose->dest_call;
|
||||
srose->srose_ndigis = rose->dest_ndigis;
|
||||
if (msg->msg_namelen >= sizeof(struct full_sockaddr_rose)) {
|
||||
struct full_sockaddr_rose *full_srose = (struct full_sockaddr_rose *)msg->msg_name;
|
||||
for (n = 0 ; n < rose->dest_ndigis ; n++)
|
||||
full_srose->srose_digis[n] = rose->dest_digis[n];
|
||||
msg->msg_namelen = sizeof(struct full_sockaddr_rose);
|
||||
} else {
|
||||
if (rose->dest_ndigis >= 1) {
|
||||
srose->srose_ndigis = 1;
|
||||
srose->srose_digi = rose->dest_digis[0];
|
||||
}
|
||||
msg->msg_namelen = sizeof(struct sockaddr_rose);
|
||||
}
|
||||
for (n = 0 ; n < rose->dest_ndigis ; n++)
|
||||
full_srose->srose_digis[n] = rose->dest_digis[n];
|
||||
msg->msg_namelen = sizeof(struct full_sockaddr_rose);
|
||||
}
|
||||
|
||||
skb_free_datagram(sk, skb);
|
||||
|
|
|
|||
Loading…
Reference in a new issue