aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r--lib/dynamic_debug.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index f959c39cc007..e488d9a03adc 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -352,8 +352,10 @@ static int ddebug_parse_query(char *words[], int nwords,
352 return -EINVAL; 352 return -EINVAL;
353 if (last) { 353 if (last) {
354 /* range <first>-<last> */ 354 /* range <first>-<last> */
355 if (parse_lineno(last, &query->last_lineno) 355 if (parse_lineno(last, &query->last_lineno) < 0)
356 < query->first_lineno) { 356 return -EINVAL;
357
358 if (query->last_lineno < query->first_lineno) {
357 pr_err("last-line:%d < 1st-line:%d\n", 359 pr_err("last-line:%d < 1st-line:%d\n",
358 query->last_lineno, 360 query->last_lineno,
359 query->first_lineno); 361 query->first_lineno);