Unverified Commit 6b8fedd2 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14420 HID: wacom: fix when get product name maybe null pointer

parents 218f4d98 4a2d6ed4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2234,6 +2234,7 @@ static void wacom_update_name(struct wacom *wacom, const char *suffix)
		if (hid_is_usb(wacom->hdev)) {
			struct usb_interface *intf = to_usb_interface(wacom->hdev->dev.parent);
			struct usb_device *dev = interface_to_usbdev(intf);
			if (dev->product != NULL)
				product_name = dev->product;
		}