Skip to content
Commit f22cf8eb authored by Dan Carpenter's avatar Dan Carpenter Committed by Rusty Russell
Browse files

virtio-blk: fix NULL checking in virtblk_alloc_req()



Smatch complains about the inconsistent NULL checking here.  Fix it to
return NULL on failure.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (fixed accidental deletion)
parent c85a1f91
Loading
Loading
Loading
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