diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-05-11 11:48:44 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-05-11 11:48:44 -0700 |
commit | 166f9cc74b630704ffed2ffe9284adfd103e1aa5 (patch) | |
tree | 10b08c22ba9e336e3550fb5f0cb315749e7cc0a0 | |
parent | aa86283c287a74f740007b6915493903a425c497 (diff) | |
parent | 3333335b97da0b7a14d357bc3ee22ff8d67aabfd (diff) |
Merge "diag: Validate proper mdlog session for a PD"
-rw-r--r-- | drivers/char/diag/diag_mux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/diag/diag_mux.c b/drivers/char/diag/diag_mux.c index 39f4b08d9b0a..d6f6ea7af8ea 100644 --- a/drivers/char/diag/diag_mux.c +++ b/drivers/char/diag/diag_mux.c @@ -153,8 +153,13 @@ int diag_mux_write(int proc, unsigned char *buf, int len, int ctx) upd = PERIPHERAL_CDSP; break; case UPD_WLAN: + if (!driver->num_pd_session) + upd = PERIPHERAL_MODEM; + break; case UPD_AUDIO: case UPD_SENSORS: + if (!driver->num_pd_session) + upd = PERIPHERAL_LPASS; break; default: pr_err("diag: invalid pd ctxt= %d\n", upd); |