* Sasha Levin <levinsasha...@gmail.com> wrote:

> +     kvm->bz_start = mmap(NULL, kvm->bz_len, PROT_READ | PROT_WRITE,
> +                             MAP_PRIVATE, kvm->bz_fd, setup_end);
>  
> +     /* NOP everything before the kernel start */
> +     memset(kvm->bz_start, 0x90, setup_size - setup_end);

You should really, really think about the case where mmap() 
fails.

Thanks,

        Ingo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to