]> 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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 24 Aug 2017 23:07:16 +0000 (18:07 -0500)
commit2e40aad231fbb8944bc2557fd9dce0d4e8d2523e
treee17a94c80e7457fc8a0662ce15428f8d1e9dff55
parent70da03f10c4949ad933e122d77b721f8ff1fc368
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>
(cherry picked from commit b1e1fa0c3afc7f671fbc24645bdf67949a5657e5)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/commit.c