Re: [PATCH] fix leakes in request_firmware_nowait

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Morton wrote:
matthieu castet <[email protected]> wrote:


What does the call to fw_work->cont(NULL, ...) do?


It tells to the callback that the firmware request fails [1].

Matthieu



[1]
/**
 * request_firmware_nowait:
 *
 * Description:
 *      Asynchronous variant of request_firmware() for contexts where
 *      it is not possible to sleep.
 *
* @hotplug invokes hotplug event to copy the firmware image if this flag
 *      is non-zero else the firmware copy must be done manually.
 *
* @cont will be called asynchronously when the firmware request is over.
 *
 *      @context will be passed over to @cont.
 *
 *      @fw may be %NULL if firmware request fails.
 *
 **/
int
request_firmware_nowait(
        struct module *module, int hotplug,
        const char *name, struct device *device, void *context,
        void (*cont)(const struct firmware *fw, void *context))
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux