diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/patches/fix-net_rcv_msg.patch | 17 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/fix-net_rcv_msg.patch b/debian/patches/fix-net_rcv_msg.patch new file mode 100644 index 00000000..6f0c8ac0 --- /dev/null +++ b/debian/patches/fix-net_rcv_msg.patch @@ -0,0 +1,17 @@ +diff --git a/libmachdev/net.c b/libmachdev/net.c +index 07bb74a..e04b558 100644 +--- a/libmachdev/net.c ++++ b/libmachdev/net.c +@@ -243,8 +243,10 @@ netif_rx_handle (char *data, int len, struct net_device *dev) + + pack_size = len - sizeof (struct ethhdr); + /* remember message sizes must be rounded up */ +- net_msg->msg_hdr.msgh_size = (((mach_msg_size_t) (sizeof(struct net_rcv_msg) +- - NET_RCV_MAX + pack_size)) + 3) & ~3; ++ net_msg->msg_hdr.msgh_size = ++ (((mach_msg_size_t) (sizeof (struct net_rcv_msg) ++ - sizeof net_msg->sent ++ - NET_RCV_MAX + pack_size)) + 3) & ~3; + + /* Copy packet into message buffer. */ + eh = (struct ether_header *) (net_msg->header); diff --git a/debian/patches/series b/debian/patches/series index d16dc537..c41f4e85 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -50,3 +50,4 @@ mach-defpager-protected-payload.patch 0007-ext2fs-use-size_t-where-appropriate.patch 0008-ext2fs-fix-type-of-blockaddr.patch 0009-ext2fs-fix-type-of-retry_dotdot.patch +fix-net_rcv_msg.patch |