[PATCH v2] block: nvme: fix the NULL ptr bug in bio_integrity_verify_fn

Christoph Hellwig hch at lst.de
Sun Sep 12 23:13:03 PDT 2021


> -	blk_integrity_unregister(disk);
> +	if (blk_get_integrity(disk))
> +		blk_integrity_unregister(disk);

Instead of open coding this in the callers I think we should make
blk_integrity_unregister a no-op if no integrity profile was registered.
Also please split this into two logically separate patches.



More information about the Linux-nvme mailing list