RE: [PATCH v4] PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.

From: MyungJoo Ham
Date: Tue Jul 03 2018 - 20:59:38 EST


>+ if (!strncmp(name, DEVFREQ_GOV_SIMPLE_ONDEMAND,
>+ DEVFREQ_NAME_LEN))
>+ err = request_module("governor_%s", "simpleondemand");
>+ else
>+ err = request_module("governor_%s", name);
>+ if (err)
>+ return NULL;

You are returning without the lock acquired..