https://bugzilla.kernel.org/show_bug.cgi?id=200519 Bug ID: 200519 Summary: Missing check of the return value of devm_clk_get() in function bcm_get_resources() Product: Drivers Version: 2.5 Kernel Version: v4.18-rc4 Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Bluetooth Assignee: linux-bluetooth@xxxxxxxxxxxxxxx Reporter: jasonwood2031@xxxxxxxxx Regression: No Function bcm_get_resources() defined in drivers/bluetooth/hci_bcm.c calls devm_clk_get() which may return ERR_PTR(-ENOMEM). However, bcm_get_resources() misses the return value check of devm_clk_get(). Codes related to this bug are shown as follows. drivers/bluetooth/hci_bcm.c: 906 return 0; 907 908: dev->clk = devm_clk_get(dev->dev, NULL); 909 910 dev->device_wakeup = devm_gpiod_get_optional(dev->dev, "device-wakeup", 911 GPIOD_OUT_LOW); -- You are receiving this mail because: You are the assignee for the bug.-- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html