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)
committerStefan Schmidt <stefan@datenfreihafen.org>
Wed, 24 Apr 2019 18:15:15 +0000 (20:15 +0200)
commit22e8860cf8f777fbf6a83f2fb7127f682a8e9de4
tree55197fe3c217f1cc3b8985633dbef299448794b1
parent1c5c12ee308aacf635c8819cd4baa3bd58f8a8b7
net: ieee802154: fix missing checks for regmap_update_bits

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>
drivers/net/ieee802154/mcr20a.c