]> git.baikalelectronics.ru Git - kernel.git/commit
slimbus: core: check get_addr before removing laddr ida
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 25 Sep 2020 09:55:18 +0000 (10:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Sep 2020 12:41:50 +0000 (14:41 +0200)
commit16bce916582e9278ebb8e7074c2aba28e3cbcbf0
treef9866b19caa352f61ed1889a898e5d6345594bb0
parent183e46ffd2804ca9e6e20e7b414fe60f6134a005
slimbus: core: check get_addr before removing laddr ida

logical address can be either assigned by the SLIMBus controller or the core.
Core uses IDA in cases where get_addr callback is not provided by the
controller.
Core already has this check while allocating IDR, however during absence
reporting this is not checked. This patch fixes this issue.

Fixes: 125691e21299 ("slimbus: core: Add slim controllers support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200925095520.27316-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/slimbus/core.c