Thread (8 messages) 8 messages, 4 authors, 2019-11-18

Re: [PATCH net, 1/2] hv_netvsc: Fix offset usage in netvsc_send_table()

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2019-11-18 17:59:18
Also in: linux-hyperv, lkml

On Mon, 18 Nov 2019 18:28:48 +0100
Vitaly Kuznetsov [off-list ref] wrote:
quoted
+		netdev_err(ndev, "Received send-table offset too big:%u\n",
+			   offset);
+		return;
+	}
+
+	tab = (void *)nvmsg + offset;  
But tab is 'u32 *', doesn't compiler complain?
nvmsg + offset is still of type void *.
assigning void * to another pointer type is allowed with C.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help