[PATCH OLK-6.6] block: fix potential invalid pointer dereference in blk_add_partition