diff --git a/system/vold/G3Dev.cpp b/system/vold/G3Dev.cpp
2 index 6a7fb87..568a93b 100755
3 --- a/system/vold/G3Dev.cpp
4 +++ b/system/vold/G3Dev.cpp
5 @@ -58,6 +58,8 @@ G3Dev::~G3Dev() {
6
7 int G3Dev::handleUsbEvent(NetlinkEvent *evt) {
8 const char *devtype = evt->findParam("DEVTYPE");
9 + if(devtype==NULL)
10 + return 0;
11 if( strcmp(devtype, "usb_device") )
12 return 0;
13 pid_t status ;
2 index 6a7fb87..568a93b 100755
3 --- a/system/vold/G3Dev.cpp
4 +++ b/system/vold/G3Dev.cpp
5 @@ -58,6 +58,8 @@ G3Dev::~G3Dev() {
6
7 int G3Dev::handleUsbEvent(NetlinkEvent *evt) {
8 const char *devtype = evt->findParam("DEVTYPE");
9 + if(devtype==NULL)
10 + return 0;
11 if( strcmp(devtype, "usb_device") )
12 return 0;
13 pid_t status ;