[openEuler-22.03-LTS 24/34] bcache: fix NULL pointer reference in cached_dev_detach_finish