Hello again, On Mon, Nov 18, 2013 at 07:59:59PM +0100, Uwe Kleine-König wrote: > if (pgoff > screen_size || pgoff + len > screen_size) This must be: if (pgoff > screen_size || len > screen_size - pgoff) to do what I intended. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html