Commit 45bdca81 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: mdm_bridge: Free driver data structure memory in correct order



mdm bridge driver allocates driver data structure for dial up network
and RMNET interface in the order interface probe is called. Driver frees
the data structure memory for control channel in reverse order in
interface disconnect. This causes the usb core driver to access freed
memory(freed during dial up network interface unbind) for control
channel when it unbinds RMNET interface. Hence allocate and free data
structure memory for control channel in the same order in which it was
allocated.

CRs-Fixed: 394951
Change-Id: Ic399c123253fcee46895e3b0b749dcd0fe43d99d
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent fe0a7d26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment