diff options
| author | Wen Congyang | 2015-09-16 10:35:46 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2015-09-16 17:33:33 +0200 |
| commit | d6268348493f32ecc096caa637620757472a1196 (patch) | |
| tree | 5e717a186ead2e5c75a181d4e4421f91ab4b67d4 /scripts | |
| parent | checkpatch: Escape left braces in regex (diff) | |
| download | qemu-d6268348493f32ecc096caa637620757472a1196.tar.gz qemu-d6268348493f32ecc096caa637620757472a1196.tar.xz qemu-d6268348493f32ecc096caa637620757472a1196.zip | |
nbd: release exp->blk after all clients are closed
If the socket fd is shutdown, there may be some data which is received before
shutdown. We will read the data and do read/write in nbd_trip(). But the exp's
blk is NULL, and it will cause qemu crashed.
Reported-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Message-Id: <55F929E2.1020501@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
