> 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/
- 2.4.2-pre3 compile error in 6pack.c Nick Urbanik
- Re: 2.4.2-pre3 compile error in 6pack.c Alan Cox
- Re: 2.4.2-pre3 compile error in 6pack.c Jeff Garzik
- Re: 2.4.2-pre3 compile error in 6pack.c David Weinehall
- Re: 2.4.2-pre3 compile error in 6pack.c Jeff Garzik
- Re: 2.4.2-pre3 compile error in 6pac... Manfred Spraul
- Re: 2.4.2-pre3 compile error in ... Alan Cox
- Re: 2.4.2-pre3 compile error in 6pack.c Alan Cox
- Re: 2.4.2-pre3 compile error in 6pac... Manfred Spraul
- Re: 2.4.2-pre3 compile error in ... Alan Cox
- Re: 2.4.2-pre3 compile error... Manfred Spraul