Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1180564 > unrolled thread

Re: [PATCH] cdc-acm: Destroy acm_minors IDR on module exit

Started byJohan Hovold <johan@kernel.org>
First post2015-07-09 11:00 +0200
Last post2015-07-09 11:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] cdc-acm: Destroy acm_minors IDR on module exit Johan Hovold <johan@kernel.org> - 2015-07-09 11:00 +0200

#1180564 — Re: [PATCH] cdc-acm: Destroy acm_minors IDR on module exit

FromJohan Hovold <johan@kernel.org>
Date2015-07-09 11:00 +0200
SubjectRe: [PATCH] cdc-acm: Destroy acm_minors IDR on module exit
Message-ID<pKfQt-6pD-9@gated-at.bofh.it>
On Wed, Jul 08, 2015 at 05:25:42PM +0200, Johannes Thumshirn wrote:
> Destroy acm_minors IDR on module exit, reclaiming the allocated memory.

> Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
> ---
>  drivers/usb/class/cdc-acm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
> index 519a77b..b30e742 100644
> --- a/drivers/usb/class/cdc-acm.c
> +++ b/drivers/usb/class/cdc-acm.c
> @@ -1944,6 +1944,7 @@ static void __exit acm_exit(void)
>  	usb_deregister(&acm_driver);
>  	tty_unregister_driver(acm_tty_driver);
>  	put_tty_driver(acm_tty_driver);
> +	idr_destroy(&acm_minors);
>  }
>  
>  module_init(acm_init);

Acked-by: Johan Hovold <johan@kernel.org>

No stable-tag needed as idr wasn't used before 4.2.

Thanks,
Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web