https://bugzilla.kernel.org/show_bug.cgi?id=101461 --- Comment #5 from H.J. Lu <hjl.tools@xxxxxxxxx> --- Does this patch make any senses: diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 008e89b..6e7f6c2 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -462,12 +462,14 @@ out: static void hidinput_cleanup_battery(struct hid_device *dev) { + struct power_supply_desc *desc; if (!dev->battery) return; + desc = (struct power_supply_desc *)dev->battery->desc; power_supply_unregister(dev->battery); - kfree(dev->battery->desc->name); - kfree(dev->battery->desc); + kfree(desc->name); + kfree(desc); dev->battery = NULL; } -- 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