]> git.proxmox.com Git - mirror_qemu.git/commit
commit: Add NULL check for overlay_bs
authorKevin Wolf <kwolf@redhat.com>
Mon, 10 Jul 2017 11:42:35 +0000 (13:42 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Jul 2017 13:14:35 +0000 (15:14 +0200)
commitb1e1fa0c3afc7f671fbc24645bdf67949a5657e5
treea233d96194f1537e30769ab121b97b242ca221aa
parent718d7f4f9cf772e5784093d8e6085680a235acdb
commit: Add NULL check for overlay_bs

I can't see how overlay_bs could become NULL with the current code, but
other code in this function already checks it and we can make Coverity
happy with this check, so let's add it.

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/commit.c