Re: [PATCH/RFC] core: add a function to safely try to get device driver owner

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Guennadi Liakhovetski
Date: Monday, November 29, 2010 - 1:11 pm

On Mon, 29 Nov 2010, Greg KH wrote:


Ok, will do.


Well, once you've got the driver, you put it by just calling 
module_put(device->driver->owner), but you're right, I should add one for 
symmetry, and there I won't guard against the race, because if someone 
would be calling the put() without a successful get(), they deserve any 
Oops they get anyway;)


Ok

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH/RFC] core: add a function to safely try to get devi ..., Guennadi Liakhovetski, (Mon Nov 29, 12:43 pm)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Mon Nov 29, 1:11 pm)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Mon Nov 29, 1:54 pm)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Mon Nov 29, 3:10 pm)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Mon Nov 29, 4:11 pm)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Tue Nov 30, 12:18 am)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Guennadi Liakhovetski, (Tue Nov 30, 10:09 am)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Laurent Pinchart, (Tue Nov 30, 10:55 am)
Re: [PATCH/RFC] core: add a function to safely try to get ..., Laurent Pinchart, (Tue Nov 30, 1:43 pm)