]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
regulator: tps65910: fix a missing check of return value
authorKangjie Lu <kjlu@umn.edu>
Fri, 21 Dec 2018 06:29:19 +0000 (00:29 -0600)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:35 +0000 (14:21 -0300)
commit62e0fdd60c9a03502b17d31a51035da25881a65b
tree790db5e329b5f114b2ac0564d1b4845e6e7dc52e
parentfdd8f9addc3606bcdfb85605c698e6713545d89b
regulator: tps65910: fix a missing check of return value

BugLink: https://bugs.launchpad.net/bugs/1855787
[ Upstream commit cd07e3701fa6a4c68f8493ee1d12caa18d46ec6a ]

tps65910_reg_set_bits() may fail. The fix checks if it fails, and if so,
returns with its error code.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/regulator/tps65910-regulator.c