diff options
| author | Michael S. Tsirkin <[email protected]> | 2013-11-28 11:30:55 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-12-02 01:27:16 +0000 |
| commit | 8fc3b9e9a229778e5af3aa453c44f1a3857ba769 (patch) | |
| tree | 49d4b6bc829ca1d1cb587b2a6f9acbf82a4ea2bf /net/unix/af_unix.c | |
| parent | virtio_net: Fixed a trivial typo (fitler --> filter) (diff) | |
| download | kernel-8fc3b9e9a229778e5af3aa453c44f1a3857ba769.tar.gz kernel-8fc3b9e9a229778e5af3aa453c44f1a3857ba769.zip | |
virtio_net: fix error handling for mergeable buffers
Eric Dumazet noticed that if we encounter an error
when processing a mergeable buffer, we don't
dequeue all of the buffers from this packet,
the result is almost sure to be loss of networking.
Jason Wang noticed that we also leak a page and that we don't decrement
the rq buf count, so we won't repost buffers (a resource leak).
Fix both issues.
Cc: Rusty Russell <[email protected]>
Cc: Michael Dalton <[email protected]>
Reported-by: Eric Dumazet <[email protected]>
Reported-by: Jason Wang <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
