d> +struct file ** alloc_fd_array(int num)
d> and then....
d> +void free_fd_array(struct file **array, int num)
d> Certainly somebody is asking for trouble...
Why? Doy you mean not checking for NULL in free_fd_array?
When alloc_fd_array returns NULL, it's not freed, et least that's how I
understood the code.
It's similar to malloc anf free.
-- Meelis Roos (mroos@tartu.cyber.ee)- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu