diff options
author | Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com> | 2009-10-04 21:54:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-06 18:22:52 -0400 |
commit | a4a987d82258f55c4bc4ab0156fb20a2b3fa4f41 (patch) | |
tree | 68a540b923f48ca9955be4492a2714ed523adc31 /drivers/net/vxge/vxge-traffic.c | |
parent | 0f8f7d58eb4840ee8790e914a88b8a773aca9143 (diff) |
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 <sreenivasa.honnur@neterion.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxge/vxge-traffic.c')
-rw-r--r-- | drivers/net/vxge/vxge-traffic.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1232 | vxge_hw_channel_dtr_post(&fifo->channel, txdlh); | 1232 | vxge_hw_channel_dtr_post(&fifo->channel, txdlh); |
1233 | 1233 | ||
1234 | __vxge_hw_non_offload_db_post(fifo, | 1234 | __vxge_hw_non_offload_db_post(fifo, |
1235 | (u64)(size_t)txdl_priv->dma_addr, | 1235 | (u64)txdl_priv->dma_addr, |
1236 | txdl_priv->frags - 1, | 1236 | txdl_priv->frags - 1, |
1237 | fifo->no_snoop_bits); | 1237 | fifo->no_snoop_bits); |
1238 | 1238 | ||