[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110617.152800.1945884789188813626.davem@davemloft.net>
Date: Fri, 17 Jun 2011 15:28:00 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: shved@...ras.ru
Cc: hjlipp@....de, tilman@...p.cc, isdn@...ux-pingi.de,
gigaset307x-common@...ts.sourceforge.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, ldv-project@...ras.ru
Subject: Re: [PATCH] gigaset: call module_put before restart of if_open()
From: Pavel Shved <shved@...ras.ru>
Date: Fri, 17 Jun 2011 20:25:11 +0400
> if_open() calls try_module_get(), and after an attempt to lock a mutex
> the if_open() function may return -ERESTARTSYS without
> putting the module. Then, when if_open() is executed again,
> try_module_get() is called making the reference counter of THIS_MODULE
> greater than one at successful exit from if_open(). The if_close()
> function puts the module only once, and as a result it can't be
> unloaded.
>
> This patch adds module_put call before the return from if_open().
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Pavel Shved <shved@...ras.ru>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists