Replaced mmap with malloc for framebuffer device