diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/smp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/smp.c b/kernel/smp.c index 2aaac2c..0785447 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -159,8 +159,10 @@ static int generic_exec_single(int cpu, struct call_single_data *csd, } - if ((unsigned)cpu >= nr_cpu_ids || !cpu_online(cpu)) + if ((unsigned)cpu >= nr_cpu_ids || !cpu_online(cpu)) { + csd_unlock(csd); return -ENXIO; + } csd->func = func; csd->info = info; |