diff options
author | M Chetan Kumar <m.chetan.kumar@linux.intel.com> | 2021-07-01 20:37:45 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-01 13:04:41 -0700 |
commit | 5bb4eea0c5f5b9383a543293966bdf20e54988aa (patch) | |
tree | b9eba753b5b398fde94287874b55db6dbe0f0c9d /drivers/net/wwan/iosm/iosm_ipc_wwan.c | |
parent | net: wwan: iosm: remove reduandant check (diff) | |
download | linux-dev-5bb4eea0c5f5b9383a543293966bdf20e54988aa.tar.xz linux-dev-5bb4eea0c5f5b9383a543293966bdf20e54988aa.zip |
net: wwan: iosm: correct link-id handling
Link ID to be kept intact with MBIM session ID
Ex: ID 0 should be associated to MBIM session ID 0.
Reported-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_wwan.c')
-rw-r--r-- | drivers/net/wwan/iosm/iosm_ipc_wwan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wwan/iosm/iosm_ipc_wwan.c b/drivers/net/wwan/iosm/iosm_ipc_wwan.c index c999c64001f4..84e37c4b0f74 100644 --- a/drivers/net/wwan/iosm/iosm_ipc_wwan.c +++ b/drivers/net/wwan/iosm/iosm_ipc_wwan.c @@ -252,8 +252,8 @@ int ipc_wwan_receive(struct iosm_wwan *ipc_wwan, struct sk_buff *skb_arg, skb->pkt_type = PACKET_HOST; - if (if_id < (IP_MUX_SESSION_START - 1) || - if_id > (IP_MUX_SESSION_END - 1)) { + if (if_id < IP_MUX_SESSION_START || + if_id > IP_MUX_SESSION_END) { ret = -EINVAL; goto free; } |