net/netvsc: fix rndis packet addresses
authorLong Li <longli@microsoft.com>
Fri, 18 Sep 2020 18:53:47 +0000 (11:53 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 21 Sep 2020 16:05:38 +0000 (18:05 +0200)
commitd9fecbe97ba7c1ad0dedf33910d8b4e4e444979a
tree87d8db89aacfcf8b93fadc9a88821ab2c7e86d29
parent6faf884136f302b3bf0d2f984090b6c3816c7062
net/netvsc: fix rndis packet addresses

The address should be calculated before type cast, not after.

Fixes: cc0251813277 ("net/netvsc: split send buffers from Tx descriptors")
Cc: stable@dpdk.org
Reported-by: Souvik Dey <sodey@rbbn.com>
Signed-off-by: Long Li <longli@microsoft.com>
drivers/net/netvsc/hn_rxtx.c