net: qualcomm: rmnet: fix two pointer math bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 19 Jun 2021 13:52:22 +0000 (16:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jun 2021 19:19:19 +0000 (12:19 -0700)
commit753ba09aa3ea14b593b168d3ef541da00f4659f5
tree6ef770d1e3d2c7d7e0731904c42e08a555421d99
parentd5fff4629beadf262559cae79012ce0dee268c1d
net: qualcomm: rmnet: fix two pointer math bugs

We recently changed these two pointers from void pointers to struct
pointers and it breaks the pointer math so now the "txphdr" points
beyond the end of the buffer.

Fixes: 56a967c4f7e5 ("net: qualcomm: rmnet: Remove some unneeded casts")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c