]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
virtio-blk: fix NULL checking in virtblk_alloc_req()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 5 Sep 2012 12:32:53 +0000 (15:32 +0300)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 00:33:31 +0000 (10:33 +1000)
commit49f58fd23b3f2ac07fa7e569ff444d1534ca06f2
tree5212a74a5190e2b86a378be725439ef3e8af444e
parenta2cb3fd4d96f94a78ee7403cbf3fb31314dd7214
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (fixed accidental deletion)
drivers/block/virtio_blk.c