]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit955f6b448576d7d702ede4fe6ec70d7a1e86da36
tree5b415d660ba9866304041006ef26ccaf86246c1d
parent1a6ea211d4793c5b666212b155eec5ae8fd139c7
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