[yocto] [PATCH 1/1] x86: fix a bug of wrong return erorr.

Liming Wang liming.wang at windriver.com
Tue Aug 23 19:45:19 PDT 2011


__vdso_clock_gettime should fall back to call vdso_fallback_gettime function
if no clockid is selected, not just return error.

Signed-off-by: Liming Wang <liming.wang at windriver.com>
---
 arch/x86/vdso/vclock_gettime.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/x86/vdso/vclock_gettime.c b/arch/x86/vdso/vclock_gettime.c
index 7bc4815..2365a5b 100644
--- a/arch/x86/vdso/vclock_gettime.c
+++ b/arch/x86/vdso/vclock_gettime.c
@@ -173,8 +173,6 @@ notrace int __vdso_clock_gettime(clockid_t clock, struct timespec *ts)
 			return do_trace_clock(ts);
 		case CLOCK_TRACE_FREQ:
 			return do_trace_clock_freq(ts);
-		default:
-			return -EINVAL;
 		}
 	return vdso_fallback_gettime(clock, ts);
 }
-- 
1.7.0.4




More information about the yocto mailing list