Re: [patch] 2.3.99-pre3-3: dev_alloc_name

From: kuznet@ms2.inr.ac.ru
Date: Wed Mar 22 2000 - 07:58:45 EST


Hello!

> Including or excluding the terminating null?

Counting 0. Maximal length of textual name is IFNAMSIZ-1.

I remembered one more thing: if you allocate name in dev_alloc_name,
it opens memory leak. Probably, it is better not to tempt fate, but
mangle names in setup, sort of replacing "eth%d" PAD with
"eth%d" PAD "1" etc. At least it is simple and stupid.

Alexey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:36 EST