Commit 6d622e65 authored by Amit Blay's avatar Amit Blay
Browse files

msm: usb_bam: Fix null pointer reference in connect_pipe



This change fixes a potential null pointer reference issue.

The sps_pipes array should hold references to allocated pipes.
But in connect_pipe, after the pipe is allocated, the reference
to the pipe is not saved in this array. So the array will always
hold NULL pointers. If a code will try to access a pipe reference
stored in this array, it will crash.

Change-Id: I2c1142ac38a87bf6e680983eb970c6943eabb88c
Signed-off-by: default avatarAmit Blay <ablay@codeaurora.org>
parent 39dbe3f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment