commit | 5d3fc39621bb6aa52e2c97fd8960a0a32ea77d4f | [log] [tgz] |
---|---|---|
author | Rajkumar Raghupathy <raghup@codeaurora.org> | Wed Apr 11 16:53:19 2012 +0530 |
committer | Rajkumar Raghupathy <raghup@codeaurora.org> | Fri Apr 13 17:03:50 2012 +0530 |
tree | f4d59306811b460e449637d240ca636de387a165 | |
parent | 53e4d58968bb8babccf7bc32f6cee9e538c51871 [diff] |
USB: android: Create android_usb sysfs in android_probe() rather in init() If the usb_composite_probe() function fails, then accessing of sysfs entries which are created in init() may lead to NULL pointer dereference crash. So create the class and sysfs entries in device probe instead of module_init to prevent accessing sysfs files when probe fails. Change-Id: Ifc29c4c9608987d29f31313c67716cd0b79b6bf4 CRs-Fixed: 351959 Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>