* request_region/release_resource
@ 2011-02-03 16:33 Julia Lawall
2011-02-03 19:07 ` request_region/release_resource Dan Carpenter
0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2011-02-03 16:33 UTC (permalink / raw)
To: kernel-janitors
Is there any circumstance in which it is ok to call release_resource on
the result of calling request(_mem)_region? One issue is that
release_resource doesn't free its argument, but then what if the call to
release_resource is followed by a call to kfree?
Example:
drivers/watchdog/s3c2410_wdt.c, in the function s3c2410wdt_probe
thanks,
julia
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: request_region/release_resource
2011-02-03 16:33 request_region/release_resource Julia Lawall
@ 2011-02-03 19:07 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2011-02-03 19:07 UTC (permalink / raw)
To: kernel-janitors
On Thu, Feb 03, 2011 at 05:33:28PM +0100, Julia Lawall wrote:
> Is there any circumstance in which it is ok to call release_resource on
> the result of calling request(_mem)_region? One issue is that
> release_resource doesn't free its argument, but then what if the call to
> release_resource is followed by a call to kfree?
>
> Example:
> drivers/watchdog/s3c2410_wdt.c, in the function s3c2410wdt_probe
>
Best to ask on lkml. Greg is the maintainer for driver core so CC him.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-03 19:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-03 16:33 request_region/release_resource Julia Lawall
2011-02-03 19:07 ` request_region/release_resource Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).