[PATCHv4 21/36] drm/komeda: Make the size checks independent from framebuffer structure