]> err.no Git - linux-2.6/commit
[PKTGEN]: Fix Initialization fail leak.
authorLuiz Capitulino <lcapitulino@mandriva.com.br>
Tue, 21 Mar 2006 06:17:55 +0000 (22:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 06:17:55 +0000 (22:17 -0800)
commit8024bb245408060bec8393469e945b541a9b0865
treebe58db8760c3ca03fc3b71155cf0cd88849ee4be
parent12e1872328e7055d06e539f1b687dc3d0610855c
[PKTGEN]: Fix Initialization fail leak.

Even if pktgen's thread initialization fails for all CPUs, the module
will be successfully loaded.

This patch changes that behaivor, by returning an error on module load time,
and also freeing all the resources allocated. It also prints a warning if a
thread initialization has failed.

Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c