Maulik Shah bbeac60f06 drivers: soc: qcom: rpmh-rsc: Correct check for slot number
The return index value from bitmap_find_next_zero_area can be higher
than available slot. So correct the check to return error in such case.

Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Reviewed-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Andy Gross <agross@kernel.org>
2019-04-09 23:40:09 -05:00
..
2018-10-29 15:16:01 -07:00
2017-08-02 12:43:29 -07:00
2019-02-15 16:30:34 -06:00
2018-09-13 16:57:11 -05:00
2017-12-20 15:38:34 -06:00
2018-09-13 16:11:38 -05:00