[PATCH 6.18 592/614] dm-raid: fix possible NULL dereference with undefined raid type