diff options
author | Paolo Abeni <pabeni@redhat.com> | 2022-12-07 13:50:15 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-12-07 13:50:16 +0100 |
commit | 92439a859000c6f4c74160a3c08c1a519e3ca125 (patch) | |
tree | 3e347be88531c013b77ec28d581e02086e271930 /net | |
parent | 4fad22a1281c500f15b172c9d261eff347ca634b (diff) | |
parent | b3d72d3135d2ef68296c1ee174436efd65386f04 (diff) | |
download | linux-stable-92439a859000c6f4c74160a3c08c1a519e3ca125.tar.gz linux-stable-92439a859000c6f4c74160a3c08c1a519e3ca125.tar.bz2 linux-stable-92439a859000c6f4c74160a3c08c1a519e3ca125.zip |
Merge tag 'ieee802154-for-net-2022-12-05' of git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan
Stefan Schmidt says:
====================
pull-request: ieee802154 for net 2022-12-05
An update from ieee802154 for your *net* tree:
Three small fixes this time around.
Ziyang Xuan fixed an error code for a timeout during initialization of the
cc2520 driver.
Hauke Mehrtens fixed a crash in the ca8210 driver SPI communication due
uninitialized SPI structures.
Wei Yongjun added INIT_LIST_HEAD ieee802154_if_add() to avoid a potential
null pointer dereference.
====================
Link: https://lore.kernel.org/r/20221205122515.1720539-1-stefan@datenfreihafen.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac802154/iface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index 500ed1b81250..7e2065e72915 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c @@ -662,6 +662,7 @@ ieee802154_if_add(struct ieee802154_local *local, const char *name, sdata->dev = ndev; sdata->wpan_dev.wpan_phy = local->hw.phy; sdata->local = local; + INIT_LIST_HEAD(&sdata->wpan_dev.list); /* setup type-dependent data */ ret = ieee802154_setup_sdata(sdata, type); |