diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-03-24 00:59:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-25 19:29:58 +0200 |
commit | 50269e19ad990e79eeda101fc6df80cffd5d4831 (patch) | |
tree | 903d80ba1b1fc0eb15e122a8c12a72f72e7ed2de /net/ipv6/route.c | |
parent | gianfar: Fix possible overrun and simplify interrupt name field creation (diff) | |
download | linux-50269e19ad990e79eeda101fc6df80cffd5d4831.tar.xz linux-50269e19ad990e79eeda101fc6df80cffd5d4831.zip |
net: add a truesize parameter to skb_add_rx_frag()
skb_add_rx_frag() API is misleading.
Network skbs built with this helper can use uncharged kernel memory and
eventually stress/crash machine in OOM.
Add a 'truesize' parameter and then fix drivers in followup patches.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions