Commit 228bce54 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mhi_dev: Adding check in open channel API"

parents 0b4ee9fb ea49b496
......@@ -3200,6 +3200,11 @@ int mhi_dev_open_channel(uint32_t chan_id,
struct mhi_dev_channel *ch;
struct platform_device *pdev;
if (!mhi_ctx || !mhi_ctx->pdev) {
mhi_log(MHI_MSG_ERROR, "Invalid open channel call for ch_id:%d\n", chan_id);
return -EINVAL;
pdev = mhi_ctx->pdev;
ch = &mhi_ctx->ch[chan_id];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment