commit | a1df77e4b88f5b485f424d6d5825849bda203820 | [log] [tgz] |
---|---|---|
author | Rajkumar Raghupathy <raghup@codeaurora.org> | Thu Jan 19 17:45:55 2012 +0530 |
committer | Rajkumar Raghupathy <raghup@codeaurora.org> | Fri Jan 20 17:22:15 2012 +0530 |
tree | 5a7c38828aa6f73b3075252f5b26cc7e7b8b122e | |
parent | ca6a61e107c7010ea7f719cbf853841278e6d318 [diff] |
USB: android: Handle error conditions in init() function When the usb_compostite_probe function fails, the USB enumeration fails. Hence accessing the USB related sysfs entries results in null pointer dereference crash. This change fixes it by handling all possible error conditions and destroy the sysfs entries in the init() function. Change-Id: Ic9cb569eef2d4076aff1acd8fc679bc762f300f7 Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>