diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-10-15 10:22:31 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-10-15 10:25:05 +1030 |
commit | 024655555021e971203c519770609509e0af4468 (patch) | |
tree | e0bc0b54628ad7621c4a2fe79062e876615599f6 /drivers/phy | |
parent | 64b4cc3911fe8284dfb3cfdb8065c100b818bab8 (diff) | |
download | linux-024655555021e971203c519770609509e0af4468.tar.bz2 |
virtio_net: fix use after free on allocation failure
In the extremely unlikely event that driver initialization fails after
RX buffers are added, virtio net frees RX buffers while VQs are
still active, potentially causing device to use a freed buffer.
To fix, reset device first - same as we do on device removal.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/phy')
0 files changed, 0 insertions, 0 deletions