[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Fix one bug in pcpu.c
The following patch fix one bug in pcpu.c. Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx> diff --git a/drivers/xen/pcpu.c b/drivers/xen/pcpu.c index ec763de..444a80c 100644 --- a/drivers/xen/pcpu.c +++ b/drivers/xen/pcpu.c @@ -201,9 +201,9 @@ static struct pcpu *get_pcpu(int xen_id) list_for_each_entry(pcpu, &xen_pcpus.list, pcpu_list) { if (pcpu->xen_id == xen_id) - break; + return pcpu; } - return (pcpu->xen_id == xen_id) ? pcpu : NULL; + return NULL; } static struct pcpu *init_pcpu(struct xenpf_pcpuinfo *info) Attachment:
pcpu_fix.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |