aboutsummaryrefslogtreecommitdiff
path: root/nbd/client.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2017-12-07 18:50:57 +0300
committerEric Blake <eblake@redhat.com>2018-01-09 12:53:44 -0600
commit9156245ec49b36d934ed09d49ffbd5dd37285374 (patch)
tree79136c40765a7a3c320f09d1e169af3d2476513e /nbd/client.c
parent3cee4db661ab9c0fce7937b3bbfa188a1845f31f (diff)
downloadqemu-9156245ec49b36d934ed09d49ffbd5dd37285374.zip
qemu-9156245ec49b36d934ed09d49ffbd5dd37285374.tar.gz
qemu-9156245ec49b36d934ed09d49ffbd5dd37285374.tar.bz2
nbd/server: add additional assert to nbd_export_put
This place is not obvious, nbd_export_close may theoretically reduce refcount to 0. It may happen if someone calls nbd_export_put on named export not through nbd_export_set_name when refcount is 1. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20171207155102.66622-2-vsementsov@virtuozzo.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'nbd/client.c')
0 files changed, 0 insertions, 0 deletions