diff options
Diffstat (limited to 'kernel/trace/trace_ksym.c')
-rw-r--r-- | kernel/trace/trace_ksym.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace_ksym.c b/kernel/trace/trace_ksym.c index fbf3a8e13bc5..cd5cb656c3d2 100644 --- a/kernel/trace/trace_ksym.c +++ b/kernel/trace/trace_ksym.c | |||
@@ -135,6 +135,9 @@ static int ksym_trace_get_access_type(char *str) | |||
135 | case 6: | 135 | case 6: |
136 | access = HW_BREAKPOINT_RW; | 136 | access = HW_BREAKPOINT_RW; |
137 | break; | 137 | break; |
138 | case 4: | ||
139 | access = -EINVAL; | ||
140 | break; | ||
138 | case 2: | 141 | case 2: |
139 | access = HW_BREAKPOINT_WRITE; | 142 | access = HW_BREAKPOINT_WRITE; |
140 | break; | 143 | break; |
@@ -312,6 +315,7 @@ static ssize_t ksym_trace_filter_write(struct file *file, | |||
312 | kfree(entry->ksym_hbp->info.name); | 315 | kfree(entry->ksym_hbp->info.name); |
313 | kfree(entry->ksym_hbp); | 316 | kfree(entry->ksym_hbp); |
314 | kfree(entry); | 317 | kfree(entry); |
318 | ret = 0; | ||
315 | goto out; | 319 | goto out; |
316 | } else { | 320 | } else { |
317 | /* Check for malformed request: (4) */ | 321 | /* Check for malformed request: (4) */ |