diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2018-07-16 21:54:09 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-07-16 21:54:09 -0700 |
| commit | 582f5092f37fd00d46b589fd9ae2bae6f0ffaf46 (patch) | |
| tree | 06ee03722da6697d64cec60c337b4f88c2680324 | |
| parent | 385635a167a7f7b8d7e8501e782e173244b7cdf3 (diff) | |
| parent | bacd1e0ae2f090b5fb7f4fafd496161e691ba27b (diff) | |
Merge "soc: qcom: hab: check the buffer's pointer before exporting it"
| -rw-r--r-- | drivers/soc/qcom/hab/hab_mimex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/hab/hab_mimex.c b/drivers/soc/qcom/hab/hab_mimex.c index c0a663d544e0..3e9046381b12 100644 --- a/drivers/soc/qcom/hab/hab_mimex.c +++ b/drivers/soc/qcom/hab/hab_mimex.c @@ -239,7 +239,7 @@ int hab_mem_export(struct uhab_context *ctx, int page_count; int compressed = 0; - if (!ctx || !param) + if (!ctx || !param || !param->buffer) return -EINVAL; vchan = hab_get_vchan_fromvcid(param->vcid, ctx); |
