From: Sreenivasa Honnur Date: Mon, 5 Oct 2009 01:54:42 +0000 (+0000) Subject: vxge: Fixed crash in PAE system due to wrong typecasting. X-Git-Tag: firefly_0821_release~9833^2~3968^2~915 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a4a987d82258f55c4bc4ab0156fb20a2b3fa4f41;p=firefly-linux-kernel-4.4.55.git vxge: Fixed crash in PAE system due to wrong typecasting. - Fix a crash in PAE system due to wrong typecasting. - On PAE system size_t is unsigned int which is 32bit. Avoid casting 64 bit address to 32 bit Signed-off-by: Sreenivasa Honnur Signed-off-by: David S. Miller --- diff --git a/drivers/net/vxge/vxge-traffic.c b/drivers/net/vxge/vxge-traffic.c index fe3ae518c69c..daeec2152bf9 100644 --- a/drivers/net/vxge/vxge-traffic.c +++ b/drivers/net/vxge/vxge-traffic.c @@ -1232,7 +1232,7 @@ void vxge_hw_fifo_txdl_post(struct __vxge_hw_fifo *fifo, void *txdlh) vxge_hw_channel_dtr_post(&fifo->channel, txdlh); __vxge_hw_non_offload_db_post(fifo, - (u64)(size_t)txdl_priv->dma_addr, + (u64)txdl_priv->dma_addr, txdl_priv->frags - 1, fifo->no_snoop_bits);