diff options
author | Nicholas Mc Guire <der.herr@hofr.at> | 2013-12-15 14:40:47 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-10 00:19:29 (GMT) |
commit | 52a2b76df4527d329f656e57c85cd4334c0a6b9b (patch) | |
tree | 57ad53e4ced49e6d1e108f0554a964c7189bebd6 /kernel | |
parent | dba6ea4e8211132d178c3ca705bc94ba4cdc7c09 (diff) | |
download | linux-fsl-qoriq-52a2b76df4527d329f656e57c85cd4334c0a6b9b.tar.xz |
bad return value in __mutex_lock_check_stamp
Bad return value in _mutex_lock_check_stamp - this problem only would show
up with 3.12.1 rt4 applied but CONFIG_PREEMPT_RT_FULL not enabled
currently it would be returning what ever vprintk_emit ended up with
(atleast on x86), which probably is not the intended behavior. Added a
return 0; as in the case with CONFIG_PREEMPT_RT_FULL enabled.
Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtmutex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c index 1bb34e9..d3d0c72 100644 --- a/kernel/rtmutex.c +++ b/kernel/rtmutex.c @@ -989,6 +989,7 @@ static inline int __sched __mutex_lock_check_stamp(struct rt_mutex *lock, struct ww_acquire_ctx *ctx) { BUG(); + return 0; } #endif |