Tag: a67911d38f2deda8a48cb0e8a4b3f59afeda7b81

mfd: twl-core: Return directly after a failed platform_device_alloc() in add_numbered_child()

Author: Markus Elfring <elfring@users.sourceforge.net> The platform_device_put() function was called in one case by the add_numbered_child() function during error handling even if the passed variable “pdev” contained a null pointer. Return directly in this case. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Lee Jones — drivers/mfd/twl-core.c | 7 ++—– 1 …

Continue reading