[IPX]: Fix NULL pointer dereference on ipx unload
commit844affa5745e38d3ac2e11d4cee79deed06df0e2
authorJiri Bohac <jbohac@suse.cz>
Wed, 14 Feb 2007 08:40:31 +0000 (14 09:40 +0100)
committerAdrian Bunk <bunk@stusta.de>
Wed, 14 Feb 2007 08:40:31 +0000 (14 09:40 +0100)
tree06cb2c933761e78797789d9e747b2a34f88e8b93
parent587d7ce100bcfa2eabbc6664122d575acac2fb83
[IPX]: Fix NULL pointer dereference on ipx unload

Fixes a null pointer dereference when unloading the ipx module.

On initialization of the ipx module, registering certain packet
types can fail. When this happens, unloading the module later
dereferences NULL pointers.  This patch fixes that. Please apply.

Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipx/af_ipx.c