aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2021-08-25 18:31:04 +0200
committerJens Axboe <[email protected]>2021-08-25 14:20:20 -0600
commit409e0ff10ead30a620ee48acb6d4545d9cb95359 (patch)
tree3c02a40a9915c593b978fb93765df45e8ca372a0 /lib/test_fortify/write_overflow-memcpy.c
parent93f63bc41f699318807df202a175d564c26bda87 (diff)
nbd: reset NBD to NULL when restarting in nbd_genl_connect
When nbd_genl_connect restarts to wait for a disconnecting device, nbd needs to be reset to NULL. Do that by facoring out a helper to find an unused device. Fixes: 6177b56c96ff ("nbd: refactor device search and allocation in nbd_genl_connect") Reported-by: Tetsuo Handa <[email protected]> Reported-by: Hillf Danton <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions