]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
de2104x: remove BUG_ON() when changing media type
authorOndrej Zary <linux@rainbow-software.org>
Mon, 25 Feb 2008 17:45:46 +0000 (18:45 +0100)
committerJeff Garzik <jeff@garzik.org>
Wed, 5 Mar 2008 11:27:50 +0000 (06:27 -0500)
commitf25f0f8dcd99e954dc0acf2fcb556cbcd7394549
tree06a85e7c9d023dce8eed5a10ac3dd6ff2a401bf5
parent8b7c1664405a1262bb78e80011ec10aa6b79df81
de2104x: remove BUG_ON() when changing media type

When the chip dies (probably because of a bug somewhere in the driver),
de_stop_rxtx() fails and changing the media type crashes the whole machine.
Replace BUG_ON() in de_set_media() with a warning.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/tulip/de2104x.c