vxge: Fixed crash in PAE system due to wrong typecasting.
authorSreenivasa Honnur <Sreenivasa.Honnur@neterion.com>
Mon, 5 Oct 2009 01:54:42 +0000 (01:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Oct 2009 22:22:52 +0000 (15:22 -0700)
- 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 <sreenivasa.honnur@neterion.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxge/vxge-traffic.c

index fe3ae518c69c30b24eeb7e12ec61dfaa08983ebb..daeec2152bf9404a2a7683d2241cd222e19c26de 100644 (file)
@@ -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);