Commit 7c80b03
net: fix sk_wmem_schedule() and sk_rmem_schedule() errors
If sk->sk_forward_alloc is 150000, and we need to schedule 150001 bytes,
we want to allocate 1 byte more (rounded up to one page),
instead of 150001 :/
Fixes: 1da177e ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 3cd3399 commit 7c80b03
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1575 | 1575 | | |
1576 | 1576 | | |
1577 | 1577 | | |
| 1578 | + | |
| 1579 | + | |
1578 | 1580 | | |
1579 | 1581 | | |
1580 | | - | |
1581 | | - | |
| 1582 | + | |
| 1583 | + | |
1582 | 1584 | | |
1583 | 1585 | | |
1584 | 1586 | | |
1585 | 1587 | | |
1586 | 1588 | | |
| 1589 | + | |
| 1590 | + | |
1587 | 1591 | | |
1588 | 1592 | | |
1589 | | - | |
1590 | | - | |
| 1593 | + | |
| 1594 | + | |
1591 | 1595 | | |
1592 | 1596 | | |
1593 | 1597 | | |
| |||
0 commit comments