All of lore.kernel.org
 help / color / mirror / Atom feed
* null pointer questions
@ 2001-11-02  7:30 Ken Ashcraft
  2001-11-02 12:51 ` Roman Zippel
  0 siblings, 1 reply; 7+ messages in thread
From: Ken Ashcraft @ 2001-11-02  7:30 UTC (permalink / raw)
  To: linux-kernel; +Cc: engler

Two questions:
1. If I pass size 0 to kmalloc, what does it return?

2. What happens if I pass a null pointer as the destination parameter
to copy_from_user?  Does copy_from_user handle it safely or will the
kernel seg fault?

Thanks for your answers,
Ken Ashcraft


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

end of thread, other threads:[~2001-11-02 23:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-02  7:30 null pointer questions Ken Ashcraft
2001-11-02 12:51 ` Roman Zippel
2001-11-02 13:16   ` lkml user
2001-11-02 22:42   ` Ken Ashcraft
2001-11-02 23:20     ` Roman Zippel
2001-11-02 23:37     ` Brian Gerst
2001-11-02 23:39       ` Brian Gerst

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.