|
@@ -217,7 +217,7 @@ int wusb_dev_sec_add(struct wusbhc *wusbhc,
|
|
|
|
|
|
result = usb_get_descriptor(usb_dev, USB_DT_SECURITY,
|
|
result = usb_get_descriptor(usb_dev, USB_DT_SECURITY,
|
|
0, secd, sizeof(*secd));
|
|
0, secd, sizeof(*secd));
|
|
- if (result < sizeof(*secd)) {
|
|
|
|
|
|
+ if (result < (int)sizeof(*secd)) {
|
|
dev_err(dev, "Can't read security descriptor or "
|
|
dev_err(dev, "Can't read security descriptor or "
|
|
"not enough data: %d\n", result);
|
|
"not enough data: %d\n", result);
|
|
goto out;
|
|
goto out;
|