[PATCH v2 1/3] drm/prime: correct logic for mapping sg to arrays