blk-integrity: checking for NULL instead of IS_ERR
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 9 Dec 2015 10:21:23 +0000 (13:21 +0300)
committerJens Axboe <axboe@fb.com>
Wed, 9 Dec 2015 15:04:29 +0000 (08:04 -0700)
commit7b6c0f8034d78390f9185e2ec2edb0a3e4ad244e
tree18e857e72e4dcbd7969ef68d7086b3375e10e6d0
parentd1ea7be5f755bf1a4d4fdccc35880fcf5069df60
blk-integrity: checking for NULL instead of IS_ERR

We recently changed bio_integrity_alloc() to return ERR_PTRs instead of
NULL but these calls were missed.

Fixes: 06c1e3902aa7 ('blk-integrity: empty implementation when disabled')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bio-integrity.c