From: Dan Carpenter Date: Fri, 23 May 2014 10:20:42 +0000 (+0300) Subject: sched: Fix signedness bug in yield_to() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~33^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa93384f40deeb294fd29f2fdcadbd0ebc2dedf1;p=pandora-kernel.git sched: Fix signedness bug in yield_to() yield_to() is supposed to return -ESRCH if there is no task to yield to, but because the type is bool that is the same as returning true. The only place I see which cares is kvm_vcpu_on_spin(). Signed-off-by: Dan Carpenter Reviewed-by: Raghavendra Signed-off-by: Peter Zijlstra Cc: Gleb Natapov Cc: Linus Torvalds Cc: Paolo Bonzini Cc: kvm@vger.kernel.org Link: http://lkml.kernel.org/r/20140523102042.GA7267@mwanda Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed