]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/mips/kernel/perf_event_mipsxx.c
Merge remote-tracking branch 'mips/mips-for-linux-next'
[karo-tx-linux.git] / arch / mips / kernel / perf_event_mipsxx.c
index bda4bc9e6988bcab40f6b5513748c861d7a0adec..e3b897acfbc04b3db1cbd29a37a423ccca4df815 100644 (file)
@@ -711,15 +711,15 @@ static int validate_group(struct perf_event *event)
        memset(&fake_cpuc, 0, sizeof(fake_cpuc));
 
        if (mipsxx_pmu_alloc_counter(&fake_cpuc, &leader->hw) < 0)
-               return -ENOSPC;
+               return -EINVAL;
 
        list_for_each_entry(sibling, &leader->sibling_list, group_entry) {
                if (mipsxx_pmu_alloc_counter(&fake_cpuc, &sibling->hw) < 0)
-                       return -ENOSPC;
+                       return -EINVAL;
        }
 
        if (mipsxx_pmu_alloc_counter(&fake_cpuc, &event->hw) < 0)
-               return -ENOSPC;
+               return -EINVAL;
 
        return 0;
 }