]> git.itanic.dy.fi Git - linux-stable/commit
net: ieee802154: fix missing checks for regmap_update_bits
authorKangjie Lu <kjlu@umn.edu>
Sun, 24 Mar 2019 23:18:56 +0000 (18:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2019 16:22:26 +0000 (18:22 +0200)
commit5450811a02f53b1e2b3b3a2a297f7af5f3e51623
treeae870c6f7fd4e6d773b3239c8733015ff2ed44b7
parent15f64f420bae7556233ac5e3c8d2ff732ee9d979
net: ieee802154: fix missing checks for regmap_update_bits

[ Upstream commit 22e8860cf8f777fbf6a83f2fb7127f682a8e9de4 ]

regmap_update_bits could fail and deserves a check.

The patch adds the checks and if it fails, returns its error
code upstream.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ieee802154/mcr20a.c