]> git.baikalelectronics.ru Git - kernel.git/commit
net: calxedaxgmac: read correct field in xgmac_desc_get_buf_len
authorRob Herring <rob.herring@calxeda.com>
Fri, 30 Aug 2013 21:49:20 +0000 (16:49 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 02:21:15 +0000 (22:21 -0400)
commitf7c0a33229567c557a630b8257c5ca75ab212676
treeef3c78022eb35852b3ddea32c0a6bcd6cffb56c7
parentb6be83aebde61108e31434bd721018a2df80eaad
net: calxedaxgmac: read correct field in xgmac_desc_get_buf_len

xgmac_desc_get_buf_len appears to have a copy/paste error. flags is the
wrong field to read. We should be reading buf_size field. cpu_to_le32
should also be le32_to_cpu. This never really mattered as this function
is only used for DMA mapping calls which happen to be nops with coherent
DMA.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/calxeda/xgmac.c