Re: [v4l-dvb-maintainer] [patch, -git] drivers/media build fix for modular builds

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Mike Galbraith <efault@...>, <sfr@...>, <video4linux-list@...>, Sam Ravnborg <sam@...>, <linux-kernel@...>, <mchehab@...>, <linux-dvb-maintainer@...>, Ingo Molnar <mingo@...>, <torvalds@...>, David Miller <davem@...>
Date: Wednesday, April 30, 2008 - 5:52 pm

On Wed, 30 Apr 2008, Andrew Morton wrote:

Should the symbol_put be done at all?  When I wrote the code this is based
on, it would check if FUNCTION failed or not.  If it failed, the symbol was
put.  But if it worked, then one was returned a handle into FUNCTION's
module, and so the symbol was not put.  If it was, the module's refcount
would be zero but the caller would have a handle into the module.

So if FUNCTION does anything that creates references to the module, and it
doesn't inc it's own refcount, then the symbol_put shouldn't be done.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PATCHES] V4L/DVB updates and fixes for 2.6.26, Mauro Carvalho Chehab, (Tue Apr 29, 5:50 pm)
Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB updates and f..., Patrick Boettcher, (Wed Apr 30, 4:02 am)
Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB updates and f..., Mauro Carvalho Chehab, (Wed Apr 30, 3:03 pm)
Re: [v4l-dvb-maintainer] [patch, -git] drivers/media build f..., Trent Piepho, (Wed Apr 30, 5:52 pm)
Re: [patch, -git] drivers/media build fix for modular builds, Mauro Carvalho Chehab, (Wed Apr 30, 11:25 am)
Re: [patch, -git] drivers/media build fix for modular builds, Mike Galbraith, (Wed Apr 30, 11:48 am)
Re: [patch, -git] drivers/media build fix for modular builds, Mauro Carvalho Chehab, (Wed Apr 30, 12:12 pm)
Re: [patch, -git] drivers/media build fix for modular builds, Mike Galbraith, (Wed Apr 30, 12:31 pm)
Re: [patch, -git] drivers/media build fix for modular builds, Mauro Carvalho Chehab, (Wed Apr 30, 5:35 pm)
Re: [v4l-dvb-maintainer] [patch, -git] drivers/media build f..., Mauro Carvalho Chehab, (Wed Apr 30, 11:48 am)
Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB updates and f..., Mauro Carvalho Chehab, (Tue Apr 29, 8:00 pm)
Re: [GIT PATCHES] V4L/DVB updates and fixes for 2.6.26, Linus Torvalds, (Tue Apr 29, 5:59 pm)