Skip to content

Commit

Permalink
Merge pull request #948 from brian90013/linux-6.5-fortify
Browse files Browse the repository at this point in the history
Fix Linux 6.5 support to avoid fortify panic
  • Loading branch information
giuseppelettieri authored Feb 28, 2024
2 parents 5bb6334 + 9376b2c commit d75ef42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions LINUX/netmap_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ tc_configure(struct ifnet *ifp, const char *qdisc_name,
}

/* Push TCA_KIND attr. */
attr_kind = (struct nlattr *)(((void *)&nlreq.hdr) +
attr_kind = (struct nlattr *)(((void *)&nlreq) +
NLMSG_ALIGN(nlreq.hdr.nlmsg_len));
attr_kind->nla_len = NLA_HDRLEN + strlen(qdisc_name) + 1;
attr_kind->nla_type = TCA_KIND;
Expand All @@ -860,7 +860,7 @@ tc_configure(struct ifnet *ifp, const char *qdisc_name,

if (limit > 0) {
/* Push TCA_OPTIONS attr. */
attr_opt = (struct nlattr *)(((void *)&nlreq.hdr) +
attr_opt = (struct nlattr *)(((void *)&nlreq) +
NLMSG_ALIGN(nlreq.hdr.nlmsg_len));
attr_opt->nla_len = NLA_HDRLEN + sizeof(uint32_t);
attr_opt->nla_type = TCA_OPTIONS;
Expand Down Expand Up @@ -2207,7 +2207,6 @@ netmap_sink_init(void)
netdev->netdev_ops = &nm_sink_netdev_ops ;
strlcpy(netdev->name, "nmsink", sizeof(netdev->name));
netdev->features = NETIF_F_HIGHDMA;
strcpy(netdev->name, "nmsink%d");
err = register_netdev(netdev);
if (err) {
free_netdev(netdev);
Expand Down

0 comments on commit d75ef42

Please sign in to comment.