diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2018-01-19 09:30:28 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-01-19 09:30:27 -0800 |
| commit | 54b0b96ecd63e3b9058c6367b1ba5b2d5bfb79e5 (patch) | |
| tree | f2ab13642f9621f1cb0e3413e4b79b96b2d60ff6 /lib/dynamic_debug.c | |
| parent | 188c08e1bf42f86dca5bb4bb96626b54ead40460 (diff) | |
| parent | de3efc405c531961da26b6b256389ca2f3350460 (diff) | |
Merge "Merge android-4.4.110 (5cc8c2e) into msm-4.4"
Diffstat (limited to 'lib/dynamic_debug.c')
| -rw-r--r-- | lib/dynamic_debug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index e3952e9c8ec0..c6368ae93fe6 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -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, |
