diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-10-07 01:17:34 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-07 01:17:34 -0700 |
| commit | 3c7400dc73db9b1455032e8d6e7679f27869cd75 (patch) | |
| tree | b76ec22ff333f4d0cb92bfe5e7296950b189d26b | |
| parent | 36e5723b82f21c98b5752e93b14ee41145f8f459 (diff) | |
| parent | 702e512b92c03ea147d0180346d1a5ad7fb56743 (diff) | |
Merge "diag: dci: Fix possible out of bound access"
| -rw-r--r-- | drivers/char/diag/diag_dci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/diag/diag_dci.c b/drivers/char/diag/diag_dci.c index b830334dc701..f0cd6cf3967d 100644 --- a/drivers/char/diag/diag_dci.c +++ b/drivers/char/diag/diag_dci.c @@ -3066,8 +3066,8 @@ int diag_dci_write_proc(uint8_t peripheral, int pkt_type, char *buf, int len) !(driver->feature[PERIPHERAL_MODEM].rcvd_feature_mask)) { DIAG_LOG(DIAG_DEBUG_DCI, "buf: 0x%pK, p: %d, len: %d, f_mask: %d\n", - buf, peripheral, len, - driver->feature[peripheral].rcvd_feature_mask); + buf, peripheral, len, + driver->feature[PERIPHERAL_MODEM].rcvd_feature_mask); return -EINVAL; } |
