]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: set error code in gsi_channel_setup()
authorAlex Elder <elder@linaro.org>
Thu, 4 Feb 2021 01:06:55 +0000 (19:06 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Feb 2021 02:55:54 +0000 (18:55 -0800)
commitc7fd4b12f1dc4bee9feda776ff3b8c55cdd7661b
treed048bdfbb70ec2a28c43da8f342550d9b9cf4e2b
parent574b201206b9f8a43709893abe0ce2491b64e234
net: ipa: set error code in gsi_channel_setup()

In gsi_channel_setup(), we check to see if the configuration data
contains any information about channels that are not supported by
the hardware.  If one is found, we abort the setup process, but
the error code (ret) is not set in this case.  Fix this bug.

Fixes: 31210ccab1a3d ("soc: qcom: ipa: the generic software interface")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20210204010655.15619-1-elder@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/gsi.c