]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: use the right accessor in ipa_endpoint_status_skip()
authorAlex Elder <elder@linaro.org>
Mon, 1 Feb 2021 23:26:08 +0000 (17:26 -0600)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Feb 2021 16:48:15 +0000 (08:48 -0800)
commit73f190264db87d71593891fb82c6b8501e5905f6
treec90247463bb77f7054720850e6526887f6fcae91
parent56c6a3bce633c6efe3e2c68de1c5abe299dcaa74
net: ipa: use the right accessor in ipa_endpoint_status_skip()

When extracting the destination endpoint ID from the status in
ipa_endpoint_status_skip(), u32_get_bits() is used.  This happens to
work, but it's wrong: the structure field is only 8 bits wide
instead of 32.

Fix this by using u8_get_bits() to get the destination endpoint ID.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_endpoint.c