[PATCH 6.5 424/491] media: venus: hfi: fix the check to handle session buffer requirement