Skip to content

Commit 8340eef

Browse files
committed
Merge tag 'ieee802154-for-net-2023-06-19' of git://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan
Stefan Schmidt says: ==================== An update from ieee802154 for your *net* tree: Two small fixes and MAINTAINERS update this time. Azeem Shaikh ensured consistent use of strscpy through the tree and fixed the usage in our trace.h. Chen Aotian fixed a potential memory leak in the hwsim simulator for ieee802154. Miquel Raynal updated the MAINATINERS file with the new team git tree locations and patchwork URLs. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 0dbcac3 + cd91250 commit 8340eef

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

MAINTAINERS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9972,8 +9972,9 @@ M: Miquel Raynal <[email protected]>
99729972
99739973
S: Maintained
99749974
W: https://linux-wpan.org/
9975-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan.git
9976-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan-next.git
9975+
Q: https://patchwork.kernel.org/project/linux-wpan/list/
9976+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan.git
9977+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan-next.git
99779978
F: Documentation/networking/ieee802154.rst
99789979
F: drivers/net/ieee802154/
99799980
F: include/linux/ieee802154.h

drivers/net/ieee802154/mac802154_hwsim.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ static int hwsim_del_edge_nl(struct sk_buff *msg, struct genl_info *info)
685685
static int hwsim_set_edge_lqi(struct sk_buff *msg, struct genl_info *info)
686686
{
687687
struct nlattr *edge_attrs[MAC802154_HWSIM_EDGE_ATTR_MAX + 1];
688-
struct hwsim_edge_info *einfo;
688+
struct hwsim_edge_info *einfo, *einfo_old;
689689
struct hwsim_phy *phy_v0;
690690
struct hwsim_edge *e;
691691
u32 v0, v1;
@@ -723,8 +723,10 @@ static int hwsim_set_edge_lqi(struct sk_buff *msg, struct genl_info *info)
723723
list_for_each_entry_rcu(e, &phy_v0->edges, list) {
724724
if (e->endpoint->idx == v1) {
725725
einfo->lqi = lqi;
726-
rcu_assign_pointer(e->info, einfo);
726+
einfo_old = rcu_replace_pointer(e->info, einfo,
727+
lockdep_is_held(&hwsim_phys_lock));
727728
rcu_read_unlock();
729+
kfree_rcu(einfo_old, rcu);
728730
mutex_unlock(&hwsim_phys_lock);
729731
return 0;
730732
}

net/ieee802154/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#define MAXNAME 32
1515
#define WPAN_PHY_ENTRY __array(char, wpan_phy_name, MAXNAME)
16-
#define WPAN_PHY_ASSIGN strlcpy(__entry->wpan_phy_name, \
16+
#define WPAN_PHY_ASSIGN strscpy(__entry->wpan_phy_name, \
1717
wpan_phy_name(wpan_phy), \
1818
MAXNAME)
1919
#define WPAN_PHY_PR_FMT "%s"

net/mac802154/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#define MAXNAME 32
1616
#define LOCAL_ENTRY __array(char, wpan_phy_name, MAXNAME)
17-
#define LOCAL_ASSIGN strlcpy(__entry->wpan_phy_name, \
17+
#define LOCAL_ASSIGN strscpy(__entry->wpan_phy_name, \
1818
wpan_phy_name(local->hw.phy), MAXNAME)
1919
#define LOCAL_PR_FMT "%s"
2020
#define LOCAL_PR_ARG __entry->wpan_phy_name

0 commit comments

Comments
 (0)