All of lore.kernel.org
 help / color / mirror / Atom feed
* 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; 4+ 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] 4+ messages in thread
* request_region/release_resource
@ 2011-02-03 20:25 Julia Lawall
  2011-02-04 21:38 ` request_region/release_resource Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2011-02-03 20:25 UTC (permalink / raw)
  To: linux-kernel; +Cc: greg

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] 4+ messages in thread

end of thread, other threads:[~2011-02-04 21:39 UTC | newest]

Thread overview: 4+ 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
  -- strict thread matches above, loose matches on Subject: below --
2011-02-03 20:25 request_region/release_resource Julia Lawall
2011-02-04 21:38 ` request_region/release_resource Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.