inst_len with 0 length should be treated as invaild value. This patch move 0 length check to the begainning of the function and return -EINVAL if inst_len == 0. Tracked-On: ccm0001001-247210 Signed-off-by: Kaige Fu <kaige.fu@intel.com>