| 83c2fa73 | 30-Jul-2018 |
Roger Pau Monné <[email protected]> |
xen-blkfront: fix memory leak in xbd_connect error path
If gnttab_grant_foreign_access() fails for any of the indirection pages, the code breaks out of both the loops without freeing the local varia
xen-blkfront: fix memory leak in xbd_connect error path
If gnttab_grant_foreign_access() fails for any of the indirection pages, the code breaks out of both the loops without freeing the local variable indirectpages, causing a memory leak.
Submitted by: Pratyush Yadav <[email protected]> Differential Review: https://reviews.freebsd.org/D16136
show more ...
|
| 91fb36cf | 21-Jun-2015 |
Colin Percival <[email protected]> |
Move the bus_dma_tag creation and per-transaction data allocation from xbd_initialize to xbd_connect. Both of these initialization steps need to know what the maximum possible I/O size will be, and
Move the bus_dma_tag creation and per-transaction data allocation from xbd_initialize to xbd_connect. Both of these initialization steps need to know what the maximum possible I/O size will be, and when we gain support for indirect segment I/Os we won't know that value until we reach xbd_connect. Since none of this data is used before xbd_connect completes, moving the initialization is harmless.
This commit should not result in any functional changes.
show more ...
|
| d0ecc14d | 20-Jun-2015 |
Colin Percival <[email protected]> |
Refactor xbd_queue_cb, extracting the code which converts bus_dma segments into blkif segments, and moving it into a new function. This will be used by upcoming support for indirect-segment blkif re
Refactor xbd_queue_cb, extracting the code which converts bus_dma segments into blkif segments, and moving it into a new function. This will be used by upcoming support for indirect-segment blkif requests.
This commit should not result in any functional changes.
show more ...
|