[PATCH 5.10 094/518] block: fix potential invalid pointer dereference in blk_add_partition