mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
net: ipa: set error code in gsi_channel_setup()
[ Upstream commit1d23a56b02] 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:650d160382("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a4595395a9
commit
23b2eac8b7
@@ -1573,6 +1573,7 @@ static int gsi_channel_setup(struct gsi *gsi, bool legacy)
|
||||
if (!channel->gsi)
|
||||
continue; /* Ignore uninitialized channels */
|
||||
|
||||
ret = -EINVAL;
|
||||
dev_err(gsi->dev, "channel %u not supported by hardware\n",
|
||||
channel_id - 1);
|
||||
channel_id = gsi->channel_count;
|
||||
|
||||
Reference in New Issue
Block a user