From 73302dd6fd35202244d149cc1a751bcbfb2eaaef Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 2 May 2008 21:50:51 -0500 Subject: [PATCH] --- yaml --- r: 95766 b: refs/heads/master c: 9f3f746741d917fe3c6c544c7d319d533176d90b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/lguest/lguest_user.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 5ea063887767..f13f17301fb6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 24adf12722b4f2800e5b5f0955d57033f0d0c9e5 +refs/heads/master: 9f3f746741d917fe3c6c544c7d319d533176d90b diff --git a/trunk/drivers/lguest/lguest_user.c b/trunk/drivers/lguest/lguest_user.c index 4017701a1788..e73a000473cc 100644 --- a/trunk/drivers/lguest/lguest_user.c +++ b/trunk/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)