Skip to content

Commit

Permalink
Merge "platform: msm: usb_bam: Fix potential use-after-free in connec…
Browse files Browse the repository at this point in the history
…t_pipe"
  • Loading branch information
qctecmdr authored and Gerrit - the friendly Code Review server committed May 26, 2022
2 parents 1aba8f9 + b296c4b commit 96f6436
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/platform/msm/usb_bam.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,7 @@ static int connect_pipe(enum usb_ctrl cur_bam, u8 idx, u32 *usb_pipe_idx,
sps_disconnect(*pipe);
free_sps_endpoint:
sps_free_endpoint(*pipe);
*pipe = NULL;
return ret;
}

Expand Down

0 comments on commit 96f6436

Please sign in to comment.