[openEuler-5.10-LTS 338/501] null_blk: fix ida error handling in null_add_dev()