Fix static analysis NULL dereference issue.
Change-Id: I9bcf942ae1b8032d399019dec01ed3b15d3d96ca
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
}
action = udev_device_get_action(dev);
+ if (!action) {
+ _E("Failed to get action from udev_device.");
+ return;
+ }
+
_I("Subsystem=%s devtype=%s action=%s", subsystem, devtype, action);
/* Policy is valid for entire device, thus we check this devtype here */
if (strncmp(subsystem, USB_SUBSYSTEM, sizeof(USB_SUBSYSTEM)) == 0 &&