commit | e3e897cb7d91db7eab1105b6352d64c40c5e9501 | [log] [tgz] |
---|---|---|
author | Manu Gautam <mgautam@codeaurora.org> | Mon Sep 12 17:18:46 2011 +0530 |
committer | Bryan Huntsman <bryanh@codeaurora.org> | Mon Oct 03 09:58:56 2011 -0700 |
tree | 3cda1c38a99228f529ab0d98f8919040b1e22860 | |
parent | dd4222b30432bb65db347ff7b8fea1bc17117c16 [diff] |
USB: rmnet: Free device context memory only during cleanup Device context is currently allocated only once during initialization and it gets freed during function unbind. This causes memory corruption issue as device context is accessed again after compostion switch. Fix this issue by freeing the memory only at the time of cleaning up the function driver resources. Signed-off-by: Manu Gautam <mgautam@codeaurora.org>