Re: [PATCH v2.6.36-rc7 1/2] isdn/capi: unregister capictr notifierafter init failure

From: Jan Kiszka
Date: Sat Oct 16 2010 - 07:01:04 EST


Am 15.10.2010 14:42, Tejun Heo wrote:
> capidrv_init() could leave capictr notifier dangling after init
> failure. Fix it.

Good catch!

I assume David will pick these two up for net-next. Adding him to CC.

Acked-by: Jan Kiszka <jan.kiszka@xxxxxx>

>
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
> ---
> drivers/isdn/capi/capidrv.c | 1 +
> 1 file changed, 1 insertion(+)
>
> Index: work/drivers/isdn/capi/capidrv.c
> ===================================================================
> --- work.orig/drivers/isdn/capi/capidrv.c
> +++ work/drivers/isdn/capi/capidrv.c
> @@ -2288,6 +2288,7 @@ static int __init capidrv_init(void)
>
> errcode = capi20_get_profile(0, &profile);
> if (errcode != CAPI_NOERROR) {
> + unregister_capictr_notifier(&capictr_nb);
> capi20_release(&global.ap);
> return -EIO;
> }


Attachment: signature.asc
Description: OpenPGP digital signature