android_kernel_motorola_sm6375/drivers/mcb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sanjuán García, Jorge 4a5c267d57 mcb: fix error handling for different scenarios when parsing
commit 63ba2d07b4be72b94216d20561f43e1150b25d98 upstream.

chameleon_parse_gdd() may fail for different reasons and end up
in the err tag. Make sure we at least always free the mcb_device
allocated with mcb_alloc_dev().

If mcb_device_register() fails, make sure to give up the reference
in the same place the device was added.

Fixes: 728ac3389296 ("mcb: mcb-parse: fix error handing in chameleon_parse_gdd()")
Cc: stable <[email protected]>
Reviewed-by: Jose Javier Rodriguez Barbarin <[email protected]>
Signed-off-by: Jorge Sanjuan Garcia <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2023-11-28 16:50:19 +00:00
..
Kconfig
Makefile
mcb-core.c mcb: fix error handling for different scenarios when parsing 2023-11-28 16:50:19 +00:00
mcb-internal.h
mcb-lpc.c mcb-lpc: Reallocate memory region to avoid memory overlapping 2023-11-08 11:23:34 +01:00
mcb-parse.c mcb: fix error handling for different scenarios when parsing 2023-11-28 16:50:19 +00:00
mcb-pci.c mcb-pci: Reallocate memory region to avoid memory overlapping 2023-05-30 12:44:04 +01:00