diff options
author | Joe Perches <joe@perches.com> | 2015-05-18 10:01:03 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-21 10:10:04 -0700 |
commit | 1a9850fbeb65734827a7dd0088ea357b0f22a242 (patch) | |
tree | a846d8fbe82ae49fb808df7d3c1c9a3ce0996379 /drivers/cdrom | |
parent | 6489f7a496378983980e8219dfaeaf66d581590b (diff) |
regulator: max77686: fix gpio_enabled shift wrapping bug
commit c53403a37cf083ce85da720f18918f73580d0064 upstream.
The code should handle more than 32 bits here because "id"
can be a value up to MAX77686_REGULATORS (currently 34).
Convert the gpio_enabled type to DECLARE_BITMAP and use
test_bit/set_bit.
Fixes: 3307e9025d29 ("regulator: max77686: Add GPIO control")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cdrom')
0 files changed, 0 insertions, 0 deletions