mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
25a1433216
There are two bugs: 1) If ida_simple_get() fails then this code calls put_device(carrier) but we haven't yet called get_device(carrier) and probably that leads to a use after free. 2) After device_initialize() then we need to use put_device() to release the bus. This will free the internal resources tied to the device and call mcb_free_bus() which will free the rest. Fixes: |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mcb-core.c | ||
mcb-internal.h | ||
mcb-lpc.c | ||
mcb-parse.c | ||
mcb-pci.c |