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