Skip to content
Snippets Groups Projects
Commit a8d99c0e authored by Dmitry Frolov's avatar Dmitry Frolov Committed by Kevin Wolf
Browse files

vmdk: Clean up bdrv_open_child() return value check


bdrv_open_child() may return NULL.
Usually return value is checked for this function.
Check for return value is more reliable.

Fixes: 24bc15d1 ("vmdk: Use BdrvChild instead of BDS for references to extents")

Signed-off-by: default avatarDmitry Frolov <frolov@swemel.ru>
Message-ID: <20230831125926.796205-1-frolov@swemel.ru>
Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent a675ca4c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment