diff options
author | David S. Miller <davem@davemloft.net> | 2019-03-19 19:01:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-19 19:01:24 +0100 |
commit | e8629d292b1d9cac1d2ce30a396a001465d2616c (patch) | |
tree | 7d8fdd6d9cbba05cebb7d36c4309ea2bb48e0af0 | |
parent | Documentation: networking: Update netdev-FAQ regarding patches (diff) | |
parent | Merge remote-tracking branch 'net/master' (diff) | |
download | linux-e8629d292b1d9cac1d2ce30a396a001465d2616c.tar.xz linux-e8629d292b1d9cac1d2ce30a396a001465d2616c.zip |
Merge branch 'ieee802154-for-davem-2019-03-19' of git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan
Stefan Schmidt says:
====================
pull-request: ieee802154 for net 2019-03-19
An update from ieee802154 for your *net* tree.
Kangjie Lu fixed a potential NULL pointer deref in the adf7242 driver and Li
RongQing make sure we propagate a netlink return code to the caller.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ieee802154/adf7242.c | 4 | ||||
-rw-r--r-- | drivers/net/ieee802154/mac802154_hwsim.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c index cd1d8faccca5..cd6b95e673a5 100644 --- a/drivers/net/ieee802154/adf7242.c +++ b/drivers/net/ieee802154/adf7242.c @@ -1268,6 +1268,10 @@ static int adf7242_probe(struct spi_device *spi) INIT_DELAYED_WORK(&lp->work, adf7242_rx_cal_work); lp->wqueue = alloc_ordered_workqueue(dev_name(&spi->dev), WQ_MEM_RECLAIM); + if (unlikely(!lp->wqueue)) { + ret = -ENOMEM; + goto err_hw_init; + } ret = adf7242_hw_init(lp); if (ret) diff --git a/drivers/net/ieee802154/mac802154_hwsim.c b/drivers/net/ieee802154/mac802154_hwsim.c index b6743f03dce0..3b88846de31b 100644 --- a/drivers/net/ieee802154/mac802154_hwsim.c +++ b/drivers/net/ieee802154/mac802154_hwsim.c @@ -324,7 +324,7 @@ static int hwsim_get_radio_nl(struct sk_buff *msg, struct genl_info *info) goto out_err; } - genlmsg_reply(skb, info); + res = genlmsg_reply(skb, info); break; } |