X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Flguest%2Flguest_user.c;h=e73a000473cc524cd16d9773da390047d362751e;hb=a9da4f7ed6a702996ac9d1bbaf1a3969a4c092b3;hp=4017701a178877da0f4258cc92f442ce4b1ec1de;hpb=24adf12722b4f2800e5b5f0955d57033f0d0c9e5;p=linux-2.6 diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest_user.c index 4017701a17..e73a000473 100644 --- a/drivers/lguest/lguest_user.c +++ b/drivers/lguest/lguest_user.c @@ -251,8 +251,6 @@ static ssize_t write(struct file *file, const char __user *in, if (!lg || (cpu_id >= lg->nr_cpus)) return -EINVAL; cpu = &lg->cpus[cpu_id]; - if (!cpu) - return -EINVAL; /* Once the Guest is dead, you can only read() why it died. */ if (lg->dead)