]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ieee802154: hwsim: fix copy-paste error in hwsim_set_edge_lqi()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 8 Aug 2018 02:43:46 +0000 (02:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 01:36:49 +0000 (18:36 -0700)
commit470770bf841b49fe129876300dfcb74a8bbabe99
tree754bae41483258fa3fdf02af2229cb7bcf6c6761
parent1c9f4a3fce770f194647dd1441502dd5b84ca883
ieee802154: hwsim: fix copy-paste error in hwsim_set_edge_lqi()

The return value from kzalloc() is not checked correctly. The
test is done against a wrong variable. This patch fix it.

Fixes: f25da51fdc38 ("ieee802154: hwsim: add replacement for fakelb")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/mac802154_hwsim.c