summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-05-11 11:48:44 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-05-11 11:48:44 -0700
commit166f9cc74b630704ffed2ffe9284adfd103e1aa5 (patch)
tree10b08c22ba9e336e3550fb5f0cb315749e7cc0a0
parentaa86283c287a74f740007b6915493903a425c497 (diff)
parent3333335b97da0b7a14d357bc3ee22ff8d67aabfd (diff)
Merge "diag: Validate proper mdlog session for a PD"
-rw-r--r--drivers/char/diag/diag_mux.c5
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);