]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ieee802154: ca8210: Add missing check for kfifo_alloc() in ca8210_probe()
authorKeisuke Nishimura <keisuke.nishimura@inria.fr>
Tue, 29 Oct 2024 18:27:12 +0000 (19:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2025 12:34:38 +0000 (13:34 +0100)
commit4589abf8c4b2c039bdd7fdd29214c9d2a4eed3d5
treedf3c753f386b6ad17f7cb78881072458e363cfd2
parentf6dce4dc12185cccce3c4122619211a5572b3b01
ieee802154: ca8210: Add missing check for kfifo_alloc() in ca8210_probe()

[ Upstream commit 2c87309ea741341c6722efdf1fb3f50dd427c823 ]

ca8210_test_interface_init() returns the result of kfifo_alloc(),
which can be non-zero in case of an error. The caller, ca8210_probe(),
should check the return value and do error-handling if it fails.

Fixes: ded845a781a5 ("ieee802154: Add CA8210 IEEE 802.15.4 device driver")
Signed-off-by: Keisuke Nishimura <keisuke.nishimura@inria.fr>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/20241029182712.318271-1-keisuke.nishimura@inria.fr
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ieee802154/ca8210.c