> Do you really prefer if drivers contain a 
> 
> static inline void* safe_kmalloc(size, flags)
> {
>       if(size > LIMIT)
>               return NULL;
>       return kmalloc(size, flags);
> }

It isnt that simple. Look at af_unix.c for example. It needs to know the
maximum safe request size to set values up and is prepared to accept
smaller values if that fails

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to