[lkml]   [2001]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectnull pointer questions
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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:12    [W:0.096 / U:2.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site