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 …