commit | da86bd2faa9cfbf065c7a1f0adba124d7e8335e0 | [log] [tgz] |
---|---|---|
author | Hemant Kumar <hemantk@codeaurora.org> | Fri Aug 24 19:42:31 2012 -0700 |
committer | Hemant Kumar <hemantk@codeaurora.org> | Fri Aug 24 19:42:31 2012 -0700 |
tree | d79b0324b5ebe92940c649f031635a707709ef99 | |
parent | 8a888a81ffd065952d240f77eaa8169dea30ac39 [diff] |
usb: ks_bridge: Fix memory leaks in the driver This change addresses two memory leaks:- 1) misc device is not getting deregistered during device disconnect. Hence call misc_deregister() in disconnect. 2) Driver returns without freeing previous instances of the driver data structure if memory allocation fails. Hence free up memory allocated for ks_bridge structure. Change-Id: I90133a002aa9d38597de8d1b21d3aad621552d46 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>