[PATCH 6.10 116/634] block: fix potential invalid pointer dereference in blk_add_partition