forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/drivers/usb/gadget/function/f_hid.c
....@@ -1292,6 +1292,7 @@
12921292 GFP_KERNEL);
12931293 if (!hidg->report_desc) {
12941294 put_device(&hidg->dev);
1295
+ --opts->refcnt;
12951296 mutex_unlock(&opts->lock);
12961297 return ERR_PTR(-ENOMEM);
12971298 }