ibm_newemac: Fixes kernel crashes when speed of cable connected changes
authorSathya Narayanan <sathyan@teamf1.com>
Tue, 1 Jul 2008 08:58:05 +0000 (10:58 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 4 Jul 2008 12:17:18 +0000 (08:17 -0400)
commitab9b30cc3ec868fab8764d710193107fbeedbd0f
treef596086e32685b9c1f885b3e8edddf4b72d3b406
parent773212337941c5e26a05989532943877d72a2c83
ibm_newemac: Fixes kernel crashes when speed of cable connected changes

The descriptor pointers were not initialized to NIL values, so it was
poiniting to some random addresses which was completely invalid. This
fix takes care of initializing the descriptor to NIL values and clearing
the valid descriptors on clean ring operation.

Signed-off-by: Sathya Narayanan <sathyan@teamf1.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/ibm_newemac/core.c