null pointer questions

From: Ken Ashcraft (kash@stanford.edu)
Date: Fri Nov 02 2001 - 02:30:21 EST


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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Nov 07 2001 - 21:00:18 EST