Re: [PATCH] Bluetooth: hidp: Fix module reference cleanup

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

 



Hi David,

On Sat, Oct 29, 2011 at 4:34 PM, David Herrmann
<dh.herrmann@xxxxxxxxxxxxxx> wrote:
> @@ -1033,6 +1032,7 @@ int hidp_add_connection(struct hidp_connadd_req *req, struct socket *ctrl_sock,
>                product = 0x0000;
>        }
>
> +       __module_get(THIS_MODULE);
>        session->task = kthread_run(hidp_session, session, "khidpd_%04x%04x",
>                                                        vendor, product);
>        if (IS_ERR(session->task)) {

Can this leak if kthread_run() fails?

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux