kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* exported symbols
@ 2009-09-18 21:39 Julia Lawall
  2009-09-19 22:40 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Julia Lawall @ 2009-09-18 21:39 UTC (permalink / raw)
  To: kernel-janitors

Functions that are exported using EXPORT_SYMBOL, and thus are presumably 
freely available for use in dynamically loaded modules, do not seem to 
very often check the validity of their inputs.  For a simple example, 
the following code from arch/arm/mach-realview/clock.c does not even check 
that clk is not NULL:

 unsigned long clk_get_rate(struct clk *clk)
 {
        return clk->rate;
 }
 EXPORT_SYMBOL(clk_get_rate);

Is this a problem?

julia

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-20 15:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-18 21:39 exported symbols Julia Lawall
2009-09-19 22:40 ` Greg KH
2009-09-20  5:21 ` Julia Lawall
2009-09-20 15:07 ` Greg KH

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).