[PATCH 6.1 067/798] block: fix potential invalid pointer dereference in blk_add_partition