Re: [PATCH] kref: double kref_put() in my_data_handler()

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

 



On Mon, 24 Aug 2009 17:27:21 +0200 Roel Kluin wrote:

> The kref_put() already occurs after the out label
> 
> Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>

Acked-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Thanks.


> ---
> diff --git a/Documentation/kref.txt b/Documentation/kref.txt
> index 130b6e8..ae203f9 100644
> --- a/Documentation/kref.txt
> +++ b/Documentation/kref.txt
> @@ -84,7 +84,6 @@ int my_data_handler(void)
>  	task = kthread_run(more_data_handling, data, "more_data_handling");
>  	if (task == ERR_PTR(-ENOMEM)) {
>  		rv = -ENOMEM;
> -	        kref_put(&data->refcount, data_release);
>  		goto out;
>  	}
>  


---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux