myri10ge: fix truesize underestimation
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 20 Oct 2011 10:10:03 +0000 (10:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2011 21:04:20 +0000 (17:04 -0400)
commit924a4c7d2e962b4e6a8e9ab3aabfd2bb29e5ada9
tree5b415d660ba9866304041006ef26ccaf86246c1d
parent7b8b59617ead5acc6ff041a9ad2ea1fe7a58094f
myri10ge: fix truesize underestimation

skb->truesize must account for allocated memory, not the used part of
it. Doing this work is important to avoid unexpected OOM situations.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Jon Mason <mason@myri.com>
Acked-by: Jon Mason <mason@myri.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/myricom/myri10ge/myri10ge.c