scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks
[GitHub/exynos8895/android_kernel_samsung_universal8895.git] / lib / dynamic_debug.c
index e3952e9c8ec04256e656ada5ca39ccdd62843093..c6368ae93fe6ee1371392f385fccf30952933278 100644 (file)
@@ -353,6 +353,10 @@ static int ddebug_parse_query(char *words[], int nwords,
                                if (parse_lineno(last, &query->last_lineno) < 0)
                                        return -EINVAL;
 
+                               /* special case for last lineno not specified */
+                               if (query->last_lineno == 0)
+                                       query->last_lineno = UINT_MAX;
+
                                if (query->last_lineno < query->first_lineno) {
                                        pr_err("last-line:%d < 1st-line:%d\n",
                                                query->last_lineno,