Messages in this thread |  | | Subject | Re: 2.4.2-pre3 compile error in 6pack.c | Date | Sun, 11 Feb 2001 20:42:21 +0000 (GMT) | From | Alan Cox <> |
| |
> 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 majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |